“Case statements execute faster than if/else statements” I bet you six dollars that commenter is a second year computer science student :)
-
-
Replying to @0xabad1dea
@0xabad1dea …because the optimization to convert if/else chains to switch can be expensive at compile time.1 reply 0 retweets 0 likes -
Replying to @pcwalton
@pcwalton@0xabad1dea There's a paper on Larceny/Twobit recognizing the if-nests that the case macro outputs, but that's not quite the same.1 reply 0 retweets 0 likes
Replying to @xlerb
@xlerb @0xabad1dea Yeah, I think it doesn't help much in C/C++…if/else chains are so annoying that people write switch in the first place.
6:19 PM - 11 Nov 2013
0 replies
0 retweets
0 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.