3 ms·
Either way, why are the <> necessary? local f close = io.open("foo.txt") seems fine.
by Pxtl 6y ago
Either way, why are the <> necessary?
local f close = io.open("foo.txt")
seems fine.
- ufo 6y agoThat wouldn't work because it is already valid Lua code with a different meaning. Lua parses it as a declaration of a local variable called f followed by an assignment to a variable named close: local f close = io.open("foo.txt") Despite the lack of semicolons, Lua is a free-form language and newlines are treated the same as any other whitespace character.