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

Sometimes, it is not related to performance loss, it is related to implementation cleanness and complexity.


A separate `select` with empty `default` is about as simple and clean as it gets. It is easy to read, easy to reason about, and, most importantly, conveys the intention of the code perfectly.




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: