News for hackers. Stuff that matters.
Re:Go and Rust – objects without class by munificent on Saturday May 04, 2013 @01:17PM (#5655522)
> Real world software, as you say, with money, clients and deadlines, is written in JavaScript all the time.

That says a lot about the lack of alternatives for code that must run in a browser and next to nothing about the merits of prototypes.

I have the fortune to work with a bunch of people that worked on Self, or worked with people that did. Many of them told me that after all of that experience, the conclusion they came to was that prototypes don't really work well in practice, even when you have multiple parents like Self. (JS lacks that, which makes it even more painfully limited.)

Meanwhile, many JS luminaries, people who understand every corner of the language, are working hard to add class syntax to ES6 (, or defining transpilers that support it (Erik Arvidsson with Traceur, Jeremy Ashkenas with CoffeeScript).

I find prototypes interesting. I've implemented my own prototype-based language from scratch to understand them better. As soon as I had it working and started writing code in the language, the first thing I found myself wanting was to add classes to it.

Re:Go and Rust – objects without class by PommeDeTerre on Saturday May 04, 2013 @06:22PM (#5656524)
It's encouraging to see such functionality at least being proposed for JavaScript. While it doesn't do much to fix many of the other inherent problems that the language is riddled with, it does at least show some small degree of sensibility going forward.