Hacker News new | ask | show | jobs
by tapirl 1591 days ago
Sometimes, it is not related to performance loss, it is related to implementation cleanness and complexity.
1 comments

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.