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#?
public class Person
{
public string Name { get; set; }
public int Age { get; set; }
}
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#?