obsoleting the "new" keyword
david.hopwood at industrial-designers.co.uk
Wed Jan 14 12:42:49 PST 2009
Kris Zyp wrote:
> I certainly hope not. A fundamental requirement of class sugar should
> be that it properly leverages "new".
Why? Using a factory function is strictly more flexible than using
'new' (even in Java).
If 'new' is supported, then "new Foo(...)" should be equivalent to
"Foo(...)" when Foo is defined using the class sugar, IMHO.
David-Sarah Hopwood ⚥
More information about the Es-discuss