JavaScript to Lua translator
github.com
github.com
http://phrogz.net/lua/LearningLua_FromJS.html
http://stackoverflow.com/questions/1022560/subtle-difference...
* js has UTF-16 strings with the same semantics(compare-by-value, immutable, interned) as lua strings. you could store UTF-16 in normal lua strings, but then you'd need some way of marshalling them for C code that expects const char* values
* JS has a lot of type coercions when doing binary operations, etc. replicating that seems like a source of indirection
* Lua tables have no explicit length, or any way to preallocate, so it's not entirely obvious what Array(len) or a.length = newlen would do
Or "a > b": http://es5.github.io/#x11.8.5
This, in turn, causes all sorts of weird behavior nicely described at https://www.destroyallsoftware.com/talks/wat
Consider using / instead: it is accepted on both Windows and UNIX.