Create a gist now

Instantly share code, notes, and snippets.

Python:
def myfunc (x):
print(x)
def myotherfunc (x):
# typo: error only becomes visible when myotherfunc
# is called.
myfun(x)
Lua:
local function myfunc (x)
print(x)
end
local function myotherfunc (x)
-- same problem: not visible until myotherfunc
-- is called
myfun(x)
end
new None rule for globals:
function myfunc (x)
print x
function myotherfunc (x)
; error on load: myfun
; is not an existing global
myfun x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment