Switch statements are the best.
1
Name:
Anonymous
2011-09-06 17:40
Every language should have these.
2
Name:
Anonymous
2011-09-06 18:16
switch([spoiler]/prog/[/spoiler]):
case [spoiler]shit[/spoiler]:
sage();
break;
case [spoiler]not_shit[/spoiler]:
/* This code should never execute */
bump(); [spoiler]bumpy_bumpy_fist_pump();[/spoiler]
break;
default:
meh();
3
Name:
Anonymous
2011-09-06 19:11
>>2
Y helo tharBBCODE MASTER [/code] !!!
[/code]
4
Name:
Anonymous
2011-09-06 21:05
switch(/prog/ ):
case shit :
sage();
break;
case not_shit :
/* This code should never execute */
bump(); bumpy_bumpy_fist_pump();
break;
default:
meh();
5
Name:
Anonymous
2011-09-06 22:08
and they should be implemented using jump tables
6
Name:
Anonymous
2011-09-07 0:32
switches < custom pointer arrays and clever bithacks.
7
Name:
Anonymous
2011-09-07 3:26
>>4
You should assert(0) for code that never executes.
8
Name:
Assert(0)
2011-09-07 4:19