Proposal: Improve syntax for inline anonymous class instantiations

Igor Vaynberg igor.vaynberg at
Sat Jan 7 05:35:35 UTC 2017

> On Jan 6, 2017, at 7:04 PM, Allen Wirfs-Brock <allen at> wrote:
> (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.

What about limiting it just to (new foo(bar) {...}) syntax?


More information about the es-discuss mailing list