3 ms·
Why wouldn't this be used for production? It compiles to human readable Lua.
by stephth 15y ago
Why wouldn't this be used for production? It compiles to human readable Lua.
- anonymoushn 15y agoI'm not sure that copy and pasting class.lua for every class definition makes for human readable Lua.
- stephth 15y agoIt's human readable as far generated code goes. It's not always practical to read (specially with classes), but you can if you have to. It's one of the philosophies behind CoffeeScript. As you can see its translation of OOP is verbose too, but readable [1], and the verbosity of the generated code is balanced by the power added on the CoffeeScript side. My point/question was: it doesn't add a runtime or new libraries/routines, you can read the generated code if something goes wrong, so why wouldn't it be ok to use in production? [1] http://jashkenas.github.com/coffee-script/#classes http://jashkenas.github.com/coffee-script/#classes