Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
layer8
on April 26, 2023
|
parent
|
context
|
favorite
| on:
Ruby's switch statement is flexible
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.
mekster
on April 26, 2023
[–]
"Switch" to this statement in "case" of this expression, seems quite easy to grasp.
Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
“Switch” was never intuitive to me, because nothing gets switched.