local keyword is allowed in global scope. You can write things like:
local x = 1
local f() = 1
However, bindings to
f are not introduced in global scope and defining
f effectively is equivalent to defining an anonymous function.
My question is is this intentional and has some use or usage of
local should be disallowed in global scope? I could not find any discussion of this here nor on GitHub.