Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow underscore as an "anonymous indentifier" #6073

Open
Hi-Angel opened this issue Nov 21, 2024 · 0 comments
Open

Allow underscore as an "anonymous indentifier" #6073

Hi-Angel opened this issue Nov 21, 2024 · 0 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request

Comments

@Hi-Angel
Copy link

Proposal

Not every block in the diagram has to be referenced. For example, given this one:

flowchart TD
   subgraph FOOES
       FOO1["Foo description"]
       FOO2["Foo description"]
   end

   subgraph BARS
       BAR1["Bar description"]
       BAR2["Bar description"]
   end

   FOOES --> BARS

FOO1, FOO2, BAR1 and BAR2 are unused. So reading the sources would be simpler if the variables weren't created, because it becomes immediately clear which parts don't have any references to them.

In modern programming languages that's usually achieved by replacing the identifier name to a underscore _. However when doing the same to the diagram above, almost every block just disappears from the diagram:

flowchart TD
   subgraph FOOES
       _["Foo description"]
       _["Foo description"]
   end

   subgraph BARS
       _["Bar description"]
       _["Bar description"]
   end

   FOOES --> BARS
flowchart TD
   subgraph FOOES
       _["Foo description"]
       _["Foo description"]
   end

   subgraph BARS
       _["Bar description"]
       _["Bar description"]
   end

   FOOES --> BARS
Loading

Example

flowchart TD
   subgraph FOOES
       _["Foo description"]
       _["Foo description"]
   end

   subgraph BARS
       _["Bar description"]
       _["Bar description"]
   end

   FOOES --> BARS

Screenshots

No response

@Hi-Angel Hi-Angel added Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request labels Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant