On May 18, 2011, at 5:57 PM, Bob Nystrom wrote:

> class Point {
>   public x = 0, y = 0;
> }
> 
> let p = new Point();
> p.x; // 0

This is pretty rare, in my experience. A hard case? If the constructor does set 
x and y from parameters, then you have double-initialization. If some 
properties are non-writable, you can't do this. YAGNI?

/be

_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to