News for hackers. Stuff that matters.
Re:How Python is killing Lisp by sreque on Sunday December 13, 2009 @12:36AM (#992461)
I won't be switching to javascript from python anytime soon. Javascript took about half of the bad ideas from perl and mixed in a few bad ideas of its own into a not very good language.

Invoking a method on a primitive string silently fails and does nothing?

Javascript differentiates between primitive strings and object wrappers such that you have to write ugly code like what's shown here: http://www.planetpdf.com/developer/article.asp?ContentID=tes...?

Forgetting the var keyword makes a variable global?

No module or package system without hacks?

Passing in the wrong number of arguments into a function is normal behavior that doesn't cause an error? At least you have nice syntax to bind arguments to variables, which perl doesn't.

People think ECMAScript's implementation of prototype based programming is a good idea? I could do the same thing in python easily by only instantiating objects and adding functions and properties to them manually, and the syntax wouldn't be much worse than in javascript, but I don't, and neither does anyone else.

It's been a while since I've studied javascript so my memory of dumb things about the language has grown dim, but I honestly don't get how people think it is a good language, or should be used anywhere else than where we are forced to use it: in the browser.

Re:How Python is killing Lisp by natrius on Sunday December 13, 2009 @02:07AM (#992512)
Most of the issues you mentioned are solved in ECMAScript 5 with "use strict".
Re:How Python is killing Lisp by chromatic on Sunday December 13, 2009 @02:58AM (#992541)
> At least you have nice syntax to bind arguments to variables, which perl doesn't.

Perl 5 and 6 both have this.