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
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
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
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
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,
5 matches
Mail list logo