Ed Leafe wrote:
> On Nov 18, 2008, at 6:42 PM, Paul McNett wrote:
> 
>> I know I could write it; I wish it were built-in.
> 
> 
>       I know you could write it, too; I was just pointing out that my first  
> instinct in Python was to mimic the way Fox worked. Since then I've  
> come to appreciate that it isn't built-in. What if instead of choosing  
> between two states, you wanted to choose between 3? Or 4? Or 16?  
> Having a single idiom for accomplishing that need is cleaner IMO, and  
> I no longer miss iif().

I guess you are right: using the dict approach would work as a one-liner of any 
length, which was the whole point of the iif(). And I guess you are right on 
another 
thing too: I don't really miss iif() either. I was just trying to contribute to 
the 
conversation. :)

Paul



_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to