Waffling (was Re: single-line terinary operators considered harmful)

Gareth McCaughan Gareth.McCaughan at pobox.com
Wed Mar 5 11:56:20 EST 2003


Stephen Horne wrote:

> > OK - I'm surprised, but can't be bothered looking up the standard,
> > especially as I'm probably just getting confused with the comma
> > operator (which is *effectively* a separator, being an infix
> > operator).
> 
> Oops - I think I just figured it out... There was definitely a
> language I used where you'd get a null statement by having a semicolon
> after the last statement of a block (not that anyone cared), and now -
> I think it was Pascal.
> 
> I can't believe I confused Pascal and C !!!
> 
> Or am I still wrong?

No, you're right. The semicolon is a separator in Pascal
and a terminator in C. (And a comment-introducer in Lisp. :-) )

-- 
Gareth McCaughan  Gareth.McCaughan at pobox.com
.sig under construc




More information about the Python-list mailing list