Should I be able to apply `new`?

Brendan Eich brendan at
Fri Apr 6 13:02:12 PDT 2007

On Apr 6, 2007, at 12:49 PM, P T Withington wrote:

> I thought I could memoize by simply returning a value from my
> constructor.  Is that no longer true?

You're thinking of functions, not classes. Class constructors cannot  
return e; -- they can only return; or fall off the end.


More information about the Es4-discuss mailing list