News for hackers. Stuff that matters.
Re:Ruby's Switch Statement Is More Flexible Than You Thought by layer8 on Wednesday April 26, 2023 @12:20PM (#35716177)
It’s the same in SQL and Ada. “Case” is an abbreviation for “case distinction” here.

“Switch” was never intuitive to me, because nothing gets switched.

Re:Ruby's Switch Statement Is More Flexible Than You Thought by mekster on Wednesday April 26, 2023 @07:56PM (#35721532)
"Switch" to this statement in "case" of this expression, seems quite easy to grasp.