Hello,
I find it odd that #catch can't take more than one symbol. It doesn't
scale well if you want many symbols and makes conditional catching a
chore:
## catch 2 syms
catch :one do
catch :two do
stuff
end
end
## catch one sym and conditionally catch another
catch :x do
if condition
catch :y do
stuff
end
else
stuff
end
end
This looks better to me:
## catch 2 syms
catch :one, :two do
stuff
end
## catch one sym and conditionally catch another
catchsyms = condition ? [:x, :y] : [:x]
catch *catchsyms do
stuff
end
Can we get this changed?