3 ms·
> It sounds like you just want... regular classes I wish Java provided syntax sugar similar to C#'s with {get; set;} and quick initialization with new C {
by dmitriid 7y ago
> It sounds like you just want... regular classes
I wish Java provided syntax sugar similar to C#'s with {get; set;} and quick initialization with
new C {
field1 = X,
field2 = Y,
...
}
Java is unnecessarily verbose in this regard.
Records bring syntactic sugar to records only. And you're stuck with pages upon pages of unnecessary boilerplate code for classes.