Actions
Bug #1017
closedCurly braces {...} and do ... end
Bug #1017:
Curly braces {...} and do ... end
Actions
Added by einarmagnus (Einar Boson) over 17 years ago. Updated over 15 years ago.
=begin
They aren't actually supposed to work the same. do/end and {/} differ in binding precedence. Your code is the equivalent of:
save_block(:say_hello) do
puts "hello!"
end
save_block(:say_hello {
puts "hello!"
})
That's the difference between the two types of block delimiters. Not new, not a bug.
=end
=begin
=end