Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: