3 ms·
You would totally see this in the code I've been writing. I've been taking advantage of enums with associated values for things like state machines. Usually, yo
by programmarchy 9y ago
You would totally see this in the code I've been writing. I've been taking advantage of enums with associated values for things like state machines. Usually, you'll see associated values like this in a switch statement, but if you need to handle a specific case, then you'll see the `if case`.