Re: [Sugar-devel] status of adding up to 10?

2009-07-24 Thread Tomeu Vizoso
On Thu, Jul 23, 2009 at 14:20, Lucian Branesculucian.brane...@gmail.com wrote: Crockford doesn't like it because if you forget to put new for a class declaration that otherwise needs it, all the attributes in the class are set on the global namespace. Hence, dangerous to forget. He suggests

Re: [Sugar-devel] status of adding up to 10?

2009-07-24 Thread Lucian Branescu
http://www.jslint.com/, made by Crockford himself. There are others as well. 2009/7/24 Tomeu Vizoso to...@sugarlabs.org: On Thu, Jul 23, 2009 at 14:20, Lucian Branesculucian.brane...@gmail.com wrote: Crockford doesn't like it because if you forget to put new for a class declaration that

Re: [Sugar-devel] status of adding up to 10?

2009-07-24 Thread Felipe López Toledo
Thanks for the suggestions :) On Fri, Jul 24, 2009 at 6:15 AM, Lucian Branescu lucian.brane...@gmail.comwrote: http://www.jslint.com/, made by Crockford himself. There are others as well. 2009/7/24 Tomeu Vizoso to...@sugarlabs.org: On Thu, Jul 23, 2009 at 14:20, Lucian

Re: [Sugar-devel] status of adding up to 10?

2009-07-23 Thread Lucian Branescu
Crockford doesn't like it because if you forget to put new for a class declaration that otherwise needs it, all the attributes in the class are set on the global namespace. Hence, dangerous to forget. He suggests using factory functions, that create and return objects instead. Either way is

Re: [Sugar-devel] status of adding up to 10?

2009-07-22 Thread Bryan Berry
it is fine w/ me I can't remember exactly why crockford doesn't like it On Wed, 2009-07-22 at 22:37 -0500, Felipe López Toledo wrote: Hi. I know, you've been playing around JS, maybe you have noticed about the *new* reserved word and its role. according to Douglas Crockford,