|
Posted by J.O. Aho on 06/26/07 04:37
Geoff Berrow wrote:
> Message-ID: <467ecee0$0$10863$426a74cc@news.free.fr> from Séverin
> Richard contained the following:
>
>> Thank you for your answer
>>
>> I have many different extention to deal with and i will use switch
>> rather than ternary operator.
>
> I still find little use for switch and prefer to use an array instead.
>
IMHO the array has the following disadvantage over a switch, you don't get a
default value, you have to duplicate same value if more than one option will
generate the same result. A lot more work if you want a dynamic reault that
depends on many variables.
--
//Aho
Navigation:
[Reply to this message]
|