Hard to find bugs, misleading exceptions

Tim Peters tim_one at email.msn.com
Sat Mar 1 01:40:33 CET 2003


[Michael Hudson]
> I think C is a touch inconsistent.  I'm fairly sure the trailing comma
> is pedantically illegal in an enum declaration.

[Erik Max Francis]
> Yes, it does.  I think this is generally considered an oversight.  I
> don't know if it was corrected in C99 (I don't have the energy to check
> right now :-).

Yes, C99 went out of its way to allow a trailing comma in an enum
declaration.  In about 10 years, maybe we can even rely on it <wink>.






More information about the Python-list mailing list