JEP draft: Prepare to make final mean final
openjdk.org
JEP draft: Prepare to make final mean final
1–10 of 143 posts
Re: JEP draft: Prepare to make final mean final
#2Re: JEP draft: Prepare to make final mean final
#3(yes yes, I know, that would break syntax... but please come up with something to discourage mutability)
Re: JEP draft: Prepare to make final mean final
#4Re: JEP draft: Prepare to make final mean final
#5Not a Java dev, so I thought it might be related to classes marked final somehow. But this seems like a reasonable proposal, at least in spirit.
Re: JEP draft: Prepare to make final mean final
#6My bet is that this will be yet another "checked exception" or "module system", where many applications now need to add "--add-opens". If you'll use ANY of many of the more popular frameworks or libraries you'll end up giving this assurance away, which will make library developers not able to rely on it and we're back to square one.
Re: JEP draft: Prepare to make final mean final
#7Great! Now can we make `final` the default for all fields, variables, and parameters? (yes yes, I know, that would break syntax... but please come up with something to discourage mutability)
Yeah I know there's ways around it, but then the author known what they told the other party to expect.