Skip to content

Weblog About Jim Jim's Resume Discussion Mailing List Search
  You are not logged in Link icon Log in Link icon Join
You are here: Re: Simon's switch-a-like for Python

Twitter Updates
Pro Services

Jim Roepcke specializes in WebObjects (Java), Plone (Zope, Python), and Cocoa (Objective-C).

  • consultation
  • development
  • documentation
  • mentoring

Contact Jim for more information.

Python Tutorial

I presented the Introduction to Python for Plone developers tutorial at the first Plone conference in October 2003. Slides and Video are available to all on the plone.org site.

Badges

Proud Member of the ACM

Proud Member of the Association for Computing Machinery

RSS reader for Mac OS X

NetNewsWire: More news, less junk. Faster

Fantasy Trading of HBWT at:

Listed on BlogShares

Design by:

Powered by Plone
Blog Directory - Blogged
Log in
Name

Password

 
I forgot my password; please send me a new one.
 
 

Re: Simon's switch-a-like for Python

Message Details
Posted
5/7/2004; 11:30 AM by Jim Roepcke
Last Modified
5/7/2004; 11:30 AM by Jim Roepcke
In Response To
Re: Simon's switch-a-like for Python (#6857)
Label
Computers-General
Read Count
261
Message Body
On May 7, 2004, at 8:21 AM, Greg Pierce wrote:

> On May 7, 2004, at 7:20 AM, Seth Dillingham wrote:
>
>> 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, that's nitpicking. i'll shut up. ;-)

Pascal's doesn't (thankfully). I've always thought it was annoying
that some languages make you explicitly break out of cases. Perhaps
there are some clever things you can do when the language allows you to
drop into other cases, but most of the time that's not what you want.

Jim

Replies
None.

October 2008
Sun Mon Tue Wed Thu Fri Sat
  1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  
Sep Nov
 
Sponsors
Research

Jim Roepcke is Willing to Fail

Books

I'm currently reading:

I'm currently reading Programming Erlang

I co-authored:

I co-authored this book