Replies: 2 comments 5 replies
-
More questions in that direction? How would such a notation interplay with Lists and Tuples (and possibly a Map syntax in future if given) |
Beta Was this translation helpful? Give feedback.
0 replies
-
This would be useful in code generation. https://www.graphql-code-generator.com/ would generate a very long name for types in queries, for instance. This proposal would the generated code simpler. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I can write:
I wish I could write:
Pros:
Cons: AFAIK all the nested types would require to be public and I'd assume that would be the standard behavior. Do you think this is a problem? There is only one
pub type
key-phrase here.If pub was omitted all types defined would be private
Further: Could we have anonymous types(?) for anything that is just a container, e.g. only the leaves would require type declaration because the rest is just nesting?
Beta Was this translation helpful? Give feedback.
All reactions