removing default case requirement?

Steven Schveighoffer schveiguy at gmail.com
Fri Mar 31 18:30:27 UTC 2023


On 3/31/23 12:28 PM, Richard (Rikki) Andrew Cattermole wrote:
> I prefer having the current behavior, it gives good guarantees that all 
> possible situations are handled, including no-operation.
> 
> Inaction is just as much an action, as any other action. Having compiler 
> enforced is very reassuring that everything is handled and done so 
> intentionally.

Do you feel the same about if statements without `else`? Why is it 
different?

-Steve


More information about the Digitalmars-d mailing list