-
-
Notifications
You must be signed in to change notification settings - Fork 129
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
Make generic types more readable: MyType`2 => MyType<T1,T2> #80
Comments
CodeSmile-0000011110110111
changed the title
Option to make generic types more readable: Dictionary`2 => Dictionary<T1,T2>
Option to make generic types more readable: MyType`2 => MyType<T1,T2>
Jun 13, 2023
CodeSmile-0000011110110111
changed the title
Option to make generic types more readable: MyType`2 => MyType<T1,T2>
Make generic types more readable: MyType`2 => MyType<T1,T2>
Jun 13, 2023
CodeSmile-0000011110110111
added a commit
to CodeSmile-0000011110110111/PlantUmlClassDiagramGenerator
that referenced
this issue
Jun 13, 2023
I hacked this into my fork. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Since generic types are suffixed with backtick followed by the number of arguments it makes for difficult reading. This system exists solely to support the compiler, not humans.
Therefore I wish at least an option (if not default behaviour) that generic types are reprinted in a form that we expect from looking at the code.
Instead of:
MyType`2
The output should be:
MyType<T1,T2>
Of course if the actual type names used in the code would be preserved that would be even better, like so:
MyType<TKey,TValue>
All of a sudden you realize that this is probably some kind of dictionary, which you couldn't infer from the two versions above.
The text was updated successfully, but these errors were encountered: