Then again using cascading to your benefit could possibly be a very efficient and descriptive way of writing a routine.

It's funny that in languages that do have switch/select statements alot of whisper hits the scene to get rid of elseif'ing as coding practise. Funny sidenote: VB's Select case doesnt even cascade.

For that reason if this ever were to be implemented we should stick to switch/case/default as keywords and starbucks_maffia suggestion:
Quote:


In addition to the switch/case/default suggestion here I'll tag on a suggestion for an "else" clause in place of "default" which only triggers if no other cases have triggered (basically a "default" which can't be cascaded into).

definitely has my vote.

Last edited by Mpdreamz; 31/07/08 09:31 PM.

$maybe