Y
Hacker News
new
|
ask
|
show
|
jobs
by
kragen
541 days ago
Cool! Did you fix new variables being global by default? What kind of checking is applied to the type annotations like `: string`?
2 comments
mingodad
541 days ago
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
link
mingodad
541 days ago
But I implemented a warning/error for variable shadowing.
link
- https://github.com/mingodad/CorsixTH-ljs - https://github.com/mingodad/ZeroBraneStudioLJS