Waffling (was Re: single-line terinary operators considered harmful)
Stephen Horne
intentionally at blank.co.uk
Wed Mar 5 11:11:40 EST 2003
On Wed, 5 Mar 2003 16:34:21 +0100, "Anders J. Munch"
<andersjm at dancontrol.dk> wrote:
>"Stephen Horne" <intentionally at blank.co.uk> wrote:
>>
>> Once it's optional, the separator-or-terminator distinction really
>> doesn't make much difference though. IIRC the semicolon is a separator
>> rather than a terminator even in C. For instance...
>>
>
>You are wrong on this point.
>
>int main()
>{
> return 0
>}
>
>is not a valid C program.
>
>- Anders
>
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).
--
steve at ninereeds dot fsnet dot co dot uk
More information about the Python-list
mailing list