Proposal: Improve syntax for inline anonymous class instantiations

Allen Wirfs-Brock allen at
Sat Jan 7 03:04:32 UTC 2017

(new class extends foo(bar) {…})
is already valid syntax that means use the value return from calling foo with argument bar as the superclass of the class that is being instantiated. What you propose would be a breaking change.

More information about the es-discuss mailing list