Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ptx
1 day ago
|
parent
|
context
|
favorite
| on:
The history of C# and TypeScript with Anders Hejls...
Lua's variables being global by default seems somewhat error-prone.
gucci-on-fleek
1 day ago
[–]
Agreed, but the recently-released v5.5 fixes that [0], and it's fairly easy to fix this in older versions with the following snippet
setmetatable(_G, { __newindex = false, __index = false })
[0]:
https://www.lua.org/manual/5.5/manual.html#2.2
reply
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: