3 ms·
Sometimes, it is not related to performance loss, it is related to implementation cleanness and complexity.
by tapirl 5y ago
Sometimes, it is not related to performance loss, it is related to implementation cleanness and complexity.
- usrbinbash 5y agoA 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.