the death of lecter
Ben Wolfson
rumjuggler at cryptarchy.org
Wed Sep 13 00:34:17 EDT 2000
On Tue, 12 Sep 2000 21:46:10 +0100, Grant Griffin <g2 at seebelow.org> wrote:
>Erik Max Francis wrote:
>>
>> Michal Wallace wrote:
>>
>> > * immediate if:
>> > print 'x is', x > 0 ? 'positive' : 'negative'
>> >
>> > # I still wish we had a ?: operator..
>> > # It would be great for lambdas!
>>
>> Yeah, an if-else operation compacted into an operator would be rather
>> convenient.
>
>I guess I would vote against this: after all, as Tim's Python philosophy
>says "readability counts", and IMHO, this is the singlemost unreadable
>construct in all of C.
On the other hand, when people try to include it in lambdas anyway, the
result isn't exactly clear:
(A and (B,) or (C,))[0]
--
Barnabas T. Rumjuggler's page of dumbth: members.home.net/rumjuggler
No photographs. Only memories.
-- Joe Frank, "A Tour of the City"
More information about the Python-list
mailing list