Created
September 24, 2015 17:50
-
-
Save jperras/0fe67047c47989f4cb93 to your computer and use it in GitHub Desktop.
Ruby… where you have to know internal parser logic for symbol table construction & lookup to determine what 7 lines of code produces.
This file contains hidden or 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
def foo(bar) | |
print bar | |
end | |
foo = 42 | |
foo foo | |
# Any guesses as to what this will do? :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks to @ehaas who stumbled upon this by accident and posed a great little brain teaser in our @fictivekin IRC server.