3 ms·
kotlin has this too .. but java does not have named params. It would be a good addition imo (think Rect(left, top, ....) , especially associated with default p
by on_and_off 7y ago
kotlin has this too .. but java does not have named params.
It would be a good addition imo (think Rect(left, top, ....) , especially associated with default params.
Alternatively, they could automatically generate a builder class for records.
As always in java, I guess that somebody will duct tape an annotation based solution on top of the language to solve this.