Created
September 27, 2015 08:26
-
-
Save paniq/fe74e65c90003d19e356 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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