Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
usrbinbash
· 4y ago · 0 comments
The real usecases where I need deterministic select, are so few that a small performance loss doesn't matter to me.
Comments
[–]
tapirl
4y ago
Sometimes, it is not related to performance loss, it is related to implementation cleanness and complexity.
[–]
usrbinbash
OP
4y ago
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.