Archive for May 26th, 2005
Daily Archive
Thursday, May 26th, 2005
There’s SPACE in my CASE
My old way of formatting swtich/case:
switch ($somevar) {
case “abc” : someFunc(); break;
case “t” : otherFunc(); break;
case “z” : yetAnotherFunc();
onemoreFunc();
break;
}
After some thoughts like:
Hey, now every time I change the length of some “var” I have to reindent all the stuff. bah.
I have to move my cursor alot to add [...]
