You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
since public fields are not allowed, this means one is forced to write setters and getters for every single member. Doing so is a lot of work, especially with structures with many fields.
Suggestion:
syntactig sugar for getters/setters, perhaps something similar to c#?
What do you mean by "a lot of work" ? If it's a few dozen fields, it's a one-time investment of a few minutes.
I consider introducing C#-style properties to Fusion. The goal is not to reduce how much you type, but ability to emit code that feels natural to the target language. And especially for C# you'd want properties.
since public fields are not allowed, this means one is forced to write setters and getters for every single member. Doing so is a lot of work, especially with structures with many fields.
Suggestion:
syntactig sugar for getters/setters, perhaps something similar to c#?
The text was updated successfully, but these errors were encountered: