A counter-counter-proposal for PEP 236: #pragma( nested_scopes)

Martin von Loewis loewis at informatik.hu-berlin.de
Fri Mar 2 10:56:42 EST 2001


"Warren Postma" <embed at geocities.com> writes:

> Has anyone considered borrowing a C notation:
> 
> #pragma( nested_scopes )
> 
> Benefits:
>     - It's a comment therefore it doesn't break anything else.
>     - It compiles fine and is ignored on pre-2.x systems.
>     - More pragmas can be added later, for warnings, code generation,
> etcetera.

I have considered it, but I dislike the idea of putting semantics into
comments. Comments are there for human readers, and not to be
interpreted by the language. If it has any formal meaning to the
language, it should have formal, outside-of-comments syntax as well.

Regards,
Martin




More information about the Python-list mailing list