News for hackers. Stuff that matters.
Re:The history of C# and TypeScript with Anders Hejlsberg | ... by gucci-on-fleek on Sunday February 01, 2026 @04:10AM (#46844709)
What about Lua? The language is very minimal, memory safe, and has Pascal-like syntax just like Delphi.
Re:The history of C# and TypeScript with Anders Hejlsberg | ... by ptx on Sunday February 01, 2026 @04:41AM (#46844852)
Lua's variables being global by default seems somewhat error-prone.
Re:The history of C# and TypeScript with Anders Hejlsberg | ... by gucci-on-fleek on Sunday February 01, 2026 @04:47AM (#46844894)
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
Re:The history of C# and TypeScript with Anders Hejlsberg | ... by andrewstuart on Sunday February 01, 2026 @06:45AM (#46845501)
verything is an off by one error in Lua.
Re:The history of C# and TypeScript with Anders Hejlsberg | ... by gucci-on-fleek on Sunday February 01, 2026 @07:02AM (#46845598)
Or conversely, everything is an off-by-one error in every other language :)
Re:The history of C# and TypeScript with Anders Hejlsberg | ... by ahartmetz on Sunday February 01, 2026 @11:44AM (#46847400)
*everythin