Building an if-else check for all members of an enumpic.twitter.com/Y2jpHBtTdL
-
-
-
Replying to @david_laskey
@david_laskey Switch statements are hard for my eyes to parse & feel like they take up more room. I'd gladly switch if there's a good reason2 replies 0 retweets 1 like -
This Tweet is unavailable.
-
Replying to @punkbot
@punkbot@benedictfritz yeah I was gonna say there's some number of cases that the compiler needs in order for it to become more efficient.1 reply 0 retweets 0 likes -
Replying to @david_laskey
@david_laskey@punkbot@benedictfritz If you're curious here's some code with the resulting msil, interesting to see https://gist.github.com/rje/573faaad29ac7148a67e …1 reply 0 retweets 3 likes
Replying to @rje
@rje @david_laskey @punkbot Okay I just wrote a switch statement, boys. Thank you.
3:36 PM - 11 Feb 2016
0 replies
0 retweets
2 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.