[Python-Dev] Re: PEP 318: Decorators last before colon (original) (raw)

David Abrahams dave at boost-consulting.com
Wed Mar 31 08:32:19 EST 2004


"Terry Reedy" <tjreedy at udel.edu> writes:

# almost as easy, or <>

Is there near precedent in other languages that I don't know of?

I want to caution against these. Turning </>, which already parse as un-paired, into angle brackets caused embarassing parsing problems for C++. Now such things as

  A::foo<X> y;

have to be written as

  A::template foo<X> y;
     ^^^^^^^^-----------keyword disambiguates parse

in some cases.

-- Dave Abrahams Boost Consulting www.boost-consulting.com



More information about the Python-Dev mailing list