Proposal: Improve syntax for inline anonymous class instantiations

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


> On Jan 6, 2017, at 7:04 PM, Allen Wirfs-Brock <allen at wirfs-brock.com> 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?

-igor



More information about the es-discuss mailing list