3 ms·
> 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
by themadsens 6y ago
> 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