Minor improvement to anonymous classes
John Rose
john.r.rose at oracle.com
Sat Jul 31 18:00:20 UTC 2021
On Jul 30, 2021, at 8:55 PM, Tagir Valeev <amaembo at gmail.com<mailto:amaembo at gmail.com>> wrote:
2. Allow new {...} instead of new Object() {…}.
I would think *that* would make a very useful poly expression.
Building “new Object() {…}” has far fewer use cases than
“build me an object of the type the context requires, with
these methods”.
My overall reaction to the extra syntax tweaks to the
existing AIC syntax is, “meh”. The syntax is inherently
ceremonious; why trouble to elide an extra token at
the head?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/amber-spec-experts/attachments/20210731/9c20bce5/attachment.htm>
More information about the amber-spec-experts
mailing list