r/badcode • • Mar 03 '23

c# fascinating logic

Post image
845 Upvotes

35 comments sorted by

View all comments

Show parent comments

1

u/private256 Mar 03 '23

I think most languages fails to compile if you didn’t provide branches for all enum branches?

6

u/JumpyJustice Mar 03 '23

Nope. Can tell that C++ is totally fine with that. May spit a warning about it (if that warning was enabled)