design icon indicating copy to clipboard operation
design copied to clipboard

`if` vs `switch` vs OOP

Open hadley opened this issue 2 years ago • 2 comments

When to use each.

hadley avatar Aug 07 '23 13:08 hadley

Self-promotion: remember that the code smells talk distills a lot of internal discussion about different approaches to conditional logic: https://github.com/jennybc/code-smells-and-feels

jennybc avatar Aug 07 '23 15:08 jennybc

And #99

hadley avatar Aug 08 '23 20:08 hadley