4 ms·
An interesting idea, though I actually feel like Lua implements much of this concept already. Admittedly, there are plenty of differences, but Lua has no `class
by halosghost 12y ago
An interesting idea, though I actually feel like Lua implements much of this concept already. Admittedly, there are plenty of differences, but Lua has no `class` or `new` keywords, but you can implement Object Orientation very simply with Tables.
Actually, that's one of many reasons I find Lua to be so elegant; but perhaps that's just me :P
- stormbrew 12y agoWhile the slideshow seems aimed at creating something new, I think (hope?) that's more of a rhetorical device, because prototype-based OO goes back to Self, and even the language that introduced classes (Smalltalk) resembles this more strongly than the more common class-based OO languages (C++ and Java). Lua is not really unique in following the same concept. Javascript and Python are also both based on the hash-with-blessed-class-member prototype-driven approach, even though they also both build class systems on top of it (JS more recently than Python).
- seanmcdirmid 12y agoThese are course notes for a grad-level PL class. I've seen something like this before...maybe 10 years ago. I don't think the encoding is particularly novel, just part of the material being taught.
- protomyth 12y agoReading over the notes, it looks like NewtonScript (and probably Self) also implements much of the concept. NewtonScript actually does 2 parent pointers and is well worth a look even if the parent platform long ago died.