Skip to content

Instantly share code, notes, and snippets.

Created November 5, 2013 03:51
What would you like to do?
What does the following print? I was surprised. (Actually, I was surprised it was legal syntax.)
def foo(a=:default, b)
puts "a=#{a}, b=#{b}"
foo(:x, :y)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment