On Fri Jan 19 15:57:42 2024 +0000, Nikolay Sivov wrote:
I don't know if you'll see it as an improvement, but checking for flags equality here is another option, switching blocks around. Up to you.
I usually find it more readable to have smaller blocks first, so that you don't have to chase the other conditions cases down, but I don't mind too much.
Anyway, I dropped the need for an else instead.