Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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 :-)


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: