Sujet : Re: else ladders practice
De : fir (at) *nospam* grunge.pl (fir)
Groupes : comp.lang.cDate : 31. Oct 2024, 15:43:39
Autres entêtes
Organisation : i2pn2 (i2pn.org)
Message-ID : <b6c9314998a567e8a582523d609828f23251d58a@i2pn2.org>
References : 1 2 3 4
User-Agent : Mozilla/5.0 (Windows NT 5.1; rv:27.0) Gecko/20100101 Firefox/27.0 SeaMonkey/2.24
fir wrote:
>
>
switch(a);
case(1) {}
case(2) {}
case(3) {}
case(4) {}
case(5) {}
>
>
in fact thise if else if else if else laddars also suck imo so in fact
this switch is more logical from some point of view and if so those above would be probably most suitable probably working goto way
though meybe thsi also could be replaaced by soem ad-hoc defined dictionary and a key-value