On Oct 11, 2011, at 18:29, Jake Verbaten wrote:
> Point.zero = function () {
> return (new Point).{ x: 0, y: 0 };
> }
>
> why are factory methods special? they are just methods.I agree with "things should be just methods", but this particular pattern doesn't work for always-frozen types. -- Kevin Reid <http://switchb.org/kpreid/> _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

