Extend switch .. case statement for Object types and simple expressions
Ulf Zibis
Ulf.Zibis at gmx.de
Thu May 28 00:42:34 PDT 2009
Joe,
again, can you please be more specific, which examples are confusing for you,
and in which way?
Am 20.05.2009 00:44, Joe Darcy schrieb:
> Hello.
>
> Catching up on comments.
>
> On 03/30/09 11:31 AM, Ulf Zibis wrote:
>> AUTHOR(S): Ulf Zibis, Cologne, Germany
>>
>> OVERVIEW
>> FEATURE SUMMARY: Extend switch .. case statement for Object types and
>> simple expressions.
>> MAJOR ADVANTAGE:
>> - Increases readability of source in concurrence to if .. else if ..
>> else syntax.
>> - Sophisticated jumps.
>> MAJOR BENEFIT:
>> Stop some programmers escaping to some modern scripting language.
>> MAJOR DISADVANTAGE:
>> Programmers from other languages, especially C, may be confused about
>> such rich syntax.
>>
>
> I'm also a bit confused over what exactly is being proposed; it does
> feel to me to be a rather aggressive change to switch.
Yes, fulfilling all given examples would be a rather aggressive change
to switch.
But you could start from example (1), and stop, where the change seems
to be too radical.
Confusing examples ?
-Ulf
More information about the coin-dev
mailing list