M
matt neuburg
def boom
raise "boom"
end
y = ""
y = boom rescue "fine"
puts y # "fine"
So far so good; the precedence of "rescue" is higher than that of
assignment. But now:
def boom
raise "boom"
end
y = ""
y += boom rescue "fine"
puts y # ""
How does the precedence work here, and should this behavior be
considered a possible bug? m.
raise "boom"
end
y = ""
y = boom rescue "fine"
puts y # "fine"
So far so good; the precedence of "rescue" is higher than that of
assignment. But now:
def boom
raise "boom"
end
y = ""
y += boom rescue "fine"
puts y # ""
How does the precedence work here, and should this behavior be
considered a possible bug? m.