5 ms·
So, essentially, the author who I assume is a Java programmer doesn't get Prototypal inheritance and wishes to make Javascript into Java. It's vaguely interest
by sh1mmer 18y ago
So, essentially, the author who I assume is a Java programmer doesn't get Prototypal inheritance and wishes to make Javascript into Java.
It's vaguely interesting looking at how he did it, the actual output itself, not so much. You'd be better off reading Doug's Javascript the Good Parts than trying to remake your Javascript into something it's not.
- jmtulloss 18y agoI don't even know Java beyond some of the concepts. If you look at the code, it uses prototypical inheritance. The whole thing is very lightweight, under 200 lines of code. I do love "JavaScript the Good Parts", but I do have some issues with the syntactic inconsistencies that exist in JS, good parts or not.
- richcollins 18y agoHave a look the library I posted to github just yesterday. It maintains javascript's prototypal inheritance but gets rid of the BS: http://github.com/richcollins/crux/tree/master/Crux.js http://github.com/richcollins/crux/tree/master/Crux.js