News for hackers. Stuff that matters.
Re:Lua, a Misunderstood Language by themadsens on Friday January 15, 2021 @06:30PM (#25798058)
> It's definitely surprising that globals default to nil

It makes a lot of sense once you realise that assigning to a "global variable X" (which is equivalent to _G[X]) and then assign nil, is exactly the same as never assigning at all

There are no comments on this comment yet.