lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


* Javier Guerra Giraldez:

> i see several deep differences.  all doable, but only if you do real
> compilation and not just source translation.
>
> - Lua can use any value as a table key, JS only supports strings
>
> - variable hoisting vs. lexical scoping
>
> - 0, "" and [] are falsy in JS, true in Lua
>
> - coroutines

- tail calls

- weak references

In comparison, differences in name lookup look easier to address, and
with less of a performance impact.