Subject: Performance diffrence between ifs and case
From: forgottenwizard <phrexianreaper hushmail.com>
Date: Sun, 29 Jul 2007 10:14:37 +0900
What kind of diffrences are there, effectivly, between case and a series
of if statements, like in this:
if i="hi"
puts "hi"
elsif i="bye"
puts "bye"
else
puts i
end
and
case i
when hi
puts "hi"
when bye
puts "bye"
else
puts i
end