es-discuss Digest, Vol 97, Issue 31

Eric Elliott eric at paralleldrive.com
Fri Mar 6 01:19:01 UTC 2015


>
>    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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150305/c6feda48/attachment.html>


More information about the es-discuss mailing list