HN2
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
gucci-on-fleek
3 days ago
|
parent
|
context
|
favorite
| on:
The history of C# and TypeScript with Anders Hejls...
What about Lua? The language is very minimal, memory safe, and has Pascal-like syntax just like Delphi.
ptx
2 days ago
|
next
[–]
Lua's variables being global by default seems somewhat error-prone.
reply
gucci-on-fleek
2 days ago
|
parent
|
next
[–]
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
andrewstuart
2 days ago
|
prev
[–]
verything is an off by one error in Lua.
reply
gucci-on-fleek
2 days ago
|
parent
[–]
Or conversely, everything is an off-by-one error in every other language :)
reply
ahartmetz
2 days ago
|
root
|
parent
[–]
*everythin
reply
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: