Skip to content

Instantly share code, notes, and snippets.

@ryan-allen
Created September 2, 2010 06:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save ryan-allen/561938 to your computer and use it in GitHub Desktop.
Save ryan-allen/561938 to your computer and use it in GitHub Desktop.
a = lambda {
b.call()
}
b = lambda {
:IMA_B_LOL
}
b.call() # raises nothing
a.call() # raises NameError: undefined local variable or method ‘b’ for main:Object ... WTF!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment