Allow "@" character as a prefix to enable keywords to be used as identifiers. #3510
Hyrtwol
started this conversation in
Ideas/Requests
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Idea from C#
Allow "@" character as a prefix to enable keywords to be used as identifiers.
https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/language-specification/lexical-structure#643-identifiers
e.g. keywords like
Useful for json serialization so you don't need to add attributes to map the fields.
C# example
not sure if using @ will clash with the Odin syntax
if so another char could be chosen ofc
Beta Was this translation helpful? Give feedback.
All reactions