vector_algorithms.cpp: clearer control flow in bitset::to_string#4490
vector_algorithms.cpp: clearer control flow in bitset::to_string#4490StephanTLavavej merged 1 commit intomicrosoft:mainfrom
vector_algorithms.cpp: clearer control flow in bitset::to_string#4490Conversation
Use `else` instead of early return
|
Is this clearer? I need to think about whether the finality of an early |
|
It now stands out so that it is clear that it is only a fallbaxk, and not tail handling |
|
Honestly, it's more of a personal preference than anything. } else
#endif // !defined(_M_ARM64EC)looks clunky. ( |
|
@AlexGuteniev Hmm, I suppose it's at least equally clear. @jovibor It looks weird, but we've increasingly used this pattern when we need to interleave preprocessor conditions with |
|
I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed. |
🧹 👓 ✨ |
Use
elseinstead of early return