Feedback on Records in JavaFX
Kasper Nielsen
kasperni at gmail.com
Sun May 10 14:12:39 UTC 2020
>
> Also, did you consider the point I made about accessor names of boolean
> fields?
Even if having a special case for boolean component types was a good idea.
I don't really see how this could work? Is it isX() or hasX()?
What if I have a
record Stuff(boolean isCertified, boolean hasPassed) {}
Would you get isIsCertified() and hasIsPassed().
In your example, what about just doing
record PopupFeatures(boolean hasToolbar, boolean hasMenubar)
IMO this is also a lot clearer than doing something like
record PopupFeatures(boolean toolbar, boolean menubar)
/Kasper
More information about the amber-dev
mailing list