Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
mikekchar
on June 29, 2019
|
parent
|
context
|
favorite
| on:
Programming Patterns I Like
This is actually nice because in some languages a case statement is a statement and not an expression -- so you can't assign the value easily. +1, would use this in production code :-)
AstralStorm
on June 29, 2019
[–]
And when conditions are not direct don't forget to add Lisp level of parentheses. I bet one time you will forget and everything will explode.
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: