Comment by kragen
1 year ago
Cool! Did you fix new variables being global by default? What kind of checking is applied to the type annotations like `: string`?
1 year ago
Cool! Did you fix new variables being global by default? What kind of checking is applied to the type annotations like `: string`?
No changes to "global by default" and no checking are made to type annotations. The idea was to be able to convert any existing Lua code automatically and get it working as before like I did with some non trivial projects like:
- https://github.com/mingodad/CorsixTH-ljs - https://github.com/mingodad/ZeroBraneStudioLJS
But I implemented a warning/error for variable shadowing.