logoalt Hacker News

cturtlelast Monday at 4:36 PM3 repliesview on HN

One of the new features I found interesting, declarations for global variables, is buried in the reference manual. Here's a link to the section that discusses it: https://www.lua.org/manual/5.5/manual.html#2.2


Replies

HellsMaddytoday at 1:01 AM

Global-by-default scoping was one of Lua's largest mistakes. I wish they'd fix it, but of course it would break backwards compat.

show 1 reply
rhelzyesterday at 11:36 PM

Why did you find this interesting?

show 2 replies