RE: Simon's switch-a-like for Python
Message Details
Posted
5/7/2004; 10:26 AM by Seth DillinghamLast Modified
5/7/2004; 10:26 AM by Seth DillinghamIn Response To
Re: Simon's switch-a-like for Python (#6857)Label
Computers-GeneralRead Count
254
Message Body
On 5/7/04, Greg Pierce said:
>>UserTalk has 'case', which is just like 'switch' in other languages.
>
>well, it's not "just like" switch, although it's very close.
>
>every other switch i've used requires you to explicitly break the
>evaluation chain to prevent further cases from being evaluated.
OK, I figured someone would point that out.
There are minor differences between other languages, too.
>ok, that's nitpicking. i'll shut up. ;-)
Phew. ;-)
>>UserTalk has 'case', which is just like 'switch' in other languages.
>
>well, it's not "just like" switch, although it's very close.
>
>every other switch i've used requires you to explicitly break the
>evaluation chain to prevent further cases from being evaluated.
OK, I figured someone would point that out.
There are minor differences between other languages, too.
>ok, that's nitpicking. i'll shut up. ;-)
Phew. ;-)
Replies
None.




