CExA-project / ddc

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

Remove switches and catch bad values #631

Closed tpadioleau closed 12 hours ago

tpadioleau commented 2 weeks ago
EmilyBourne commented 16 hours ago

Why do you prefer if/else over switches?

tpadioleau commented 16 hours 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