I'm coming from Tcl-world ...

Fearless Freep joconnor at cybermesa.com
Fri Aug 2 15:17:06 EDT 2002


claird at starbase.neosoft.com (Cameron Laird) wrote in message news:<387A5DEC052156FC.360D7A9779952D2A.9FBE54AEFEE7C392 at lp.airnews.net>...
> 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.

> 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.


I confess, coming from a Smalltalk background, I had been using Python
for about eight months before I even wondered if it had a switch
construct or not

Jay O'Connor
http://www.r4h.org/r4hsoftware



More information about the Python-list mailing list