HN2new | past | comments | ask | show | jobs | submitlogin

MoonScript reminds me of CoffeeScript in this regard. Lua and JS are both prototypical languages, which is a feature, not a bug. Putting some `class` syntactic sugar around it helps initially, but also causes confusion when it doesn't act like a traditional OOP class.


Lua isn’t really a prototypical language, it’s a build-your-own-class system. Metatables help facilitate this. You can do classic OOP if you want.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: