CExA-project / ddc

DDC is a discrete domain computation library.
https://ddc.mdls.fr
Other
33 stars 5 forks source link

Remove switches and catch bad values #631

Closed tpadioleau closed 1 month ago

tpadioleau commented 2 months ago
EmilyBourne commented 1 month ago

Why do you prefer if/else over switches?

tpadioleau commented 1 month ago

Why do you prefer if/else over switches?

I find it old construct from the language, less obvious to implement correctly. We used to have a bug about a missing break statement