> > 5. Re: How to fix the `class` keyword (Allen Wirfs-Brock) > > One of those possible enhancement that has been talked about is to > implicitly treat a [[Call]] of a class constructor as an implicit 'new', > just like you are suggesting. >
Doesn't this need to be configurable, and Brendan Eich suggested? https://gist.github.com/ericelliott/1c6f451b2ed1b634c2f2 If implicit `new` is the only behavior, it blocks the factory refactor path. https://gist.github.com/ericelliott/e994ee541d0ed365f5fd If skipping the `new` treatment is the only behavior, it breaks backward compatibility with constructors expecting the `new` treatment. ~ee
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss