News for hackers. Stuff that matters.
Re:Apple's new Objective-C to Javascript Bridge by Arelius on Wednesday May 15, 2013 @02:30PM (#5713853)
I actually like Javascript. Sure it has some warts. But it has an elegance I've really only seen in Javascript, Lua, and Lisp.
Re:Apple's new Objective-C to Javascript Bridge by drtse4 on Wednesday May 15, 2013 @02:41PM (#5713908)
You last sentence is a bit far-fetched.
Re:Apple's new Objective-C to Javascript Bridge by stcredzero on Wednesday May 15, 2013 @03:15PM (#5714103)
The referred sentence is a matter of opinion, so it's a bit far-fetched to say it's a bit far-fetched, IMO. From what I know of Lua, it's fairly tiny, and it has ready access to its own meta-level -- to the point where there can be a blurring of programming and meta-programming. Instead of everything "being an Object," everything is in a table. Just rename "table" to "object" and call it a prototypical day.
Re:Apple's new Objective-C to Javascript Bridge by drtse4 on Wednesday May 15, 2013 @03:44PM (#5714326)
No it's not, jokes aside, implicitly comparing Javascript to Lisp from the point of view of elegance is simply incorrect, for many definitions of "elegance".
Re:Apple's new Objective-C to Javascript Bridge by stcredzero on Wednesday May 15, 2013 @03:49PM (#5714376)
And for how many definitions of "comparable?" Lose a point for careless reading.
Re:Apple's new Objective-C to Javascript Bridge by CodeCube on Wednesday May 15, 2013 @03:41PM (#5714297)
It is an elegant weapon, for a more civilized age
Re:Apple's new Objective-C to Javascript Bridge by mmariani on Wednesday May 15, 2013 @04:28PM (#5714649)
If you want to shoot your own foot sure!
Re:Apple's new Objective-C to Javascript Bridge by yen223 on Wednesday May 15, 2013 @11:07PM (#5716668)
If Javascript had a saner type system, better scoping, and a decent module system, it would easily be the best language out there. Right now, it is a diamond covered in loads of poop.

I still haven't found a language that implements events as elegantly as Javascript.

Re:Apple's new Objective-C to Javascript Bridge by Offler on Thursday May 16, 2013 @04:07AM (#5717462)
Some of those things are improving in ES6 with block scoping and modules.