I'm coming from Tcl-world ...
Cameron Laird
claird at starbase.neosoft.com
Fri Aug 2 10:53:39 EDT 2002
In article <slrnakl3mb.c05.Andreas.Leitgeb at pc7499.gud.siemens.at>,
Andreas Leitgeb <avl at logic.at> wrote:
.
.
.
>2.) A 'switch'-thing: like a big if-elif-elif-elif-...-else but which
> evaluates its expression only once ... and then does all the comparisons.
.
.
.
You're far from the first to ask about it. I
confess I occasionally ache from its absence.
The Python attitude, though, is that a LOT of
switches are bogus; they're better handled as
type resolution (switching between what amount
to different classes) or dictionary look-up.
--
Cameron Laird <Cameron at Lairds.com>
Business: http://www.Phaseit.net
Personal: http://starbase.neosoft.com/~claird/home.html
More information about the Python-list
mailing list