removing default case requirement?
Sebastiaan Koppe
mail at skoppe.eu
Fri Mar 31 22:14:04 UTC 2023
On Friday, 31 March 2023 at 21:24:25 UTC, Steven Schveighoffer
wrote:
> If you "forget a case statement", or refactor it, forcing you
> to write `default: break;` doesn't fix that.
>
Whenever I do write then, I do it reluctantly and mostly as a
last resort.
Having the default be open-endedness means I don't get reminded
about that ugly detail anymore.
Of the two evils, I prefer the explicit one.
More information about the Digitalmars-d
mailing list