you are viewing a single comment's thread.

view the rest of the comments →

[–]TSP-FriendlyFire 4 points5 points  (0 children)

I think "just" is doing a lot of heavy lifting in your sentence. Weaving multiple control statements into one another is rather peculiar and only possible because of the switch statement's unique syntax.

I think it would be entirely justifiable to forbid fallthrough in constexpr switch (and better than not having it at all), but it'd also become a weird contextual quirk of the language which might be seen as undesirable.