4 ms·
Yeah, that's the textbook explanation, I guess. So I'll stick to it in interviews, as useless it is in real life. All the hoops for this... Codegen, excluding
by drowsspa 3y ago
Yeah, that's the textbook explanation, I guess. So I'll stick to it in interviews, as useless it is in real life.
All the hoops for this... Codegen, excluding from coverage, Lombok, and all that magic to hide you from a simple obj.field that is all you're doing in 99.9% of cases. It's just so rare in practice. I think the language itself should allow for readonly fields and property setters for the extremely rare occasions where you need this.