I wrote a case expression like
case x
when "one" "I"
when "two" "II"
end
It does not cause a syntax error, and always returns nil
regardless of the value of x
. I think it should cause a syntax error, but the reality is not the case. Why?
I wrote a case expression like
case x
when "one" "I"
when "two" "II"
end
It does not cause a syntax error, and always returns nil
regardless of the value of x
. I think it should cause a syntax error, but the reality is not the case. Why?