A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2004-March/042906.html below:

[Python-Dev] Pep 318 - new syntax (esp for wrappers)

[Python-Dev] Pep 318 - new syntax (esp for wrappers)Jewett, Jim J jim.jewett at eds.com
Wed Mar 3 14:39:37 EST 2004
Bob Ippolito

> ANYTHING that transforms a function in 
> ANY way can be represented by this decorator syntax.

"can" != "should".

The transforms *can* be represented in the current 
syntax, but we agree that the current idiom should 
be improved.  Different changes may be preferable 
for other patterns.

>> (2)  Wrappers are not essential to understanding 
>> functions, and should not pretend to be. ...

>> In most languages, classifiers are always relevant.
>> {int, public, synchronized, ...}

> [In python, these wrappers] are not essential to
> understanding how to make your own functions or methods,

exactly.

> Since when do newbies read the "language lawyer" documentation?

Depends on the newbie, and the definition of "language lawyer".

Most programmers want a manual or reference when they're first
learning, and will turn to it when they get confused.  (Hey, 
I got a syntax error!  What's up?  Hey, this function just 
changed its signature!)  Then they'll see the full syntax.  

> No tutorials or existing code ... use this syntax yet, so newbies 
> are obviously not going to see it.

There will always be more newbies -- even a year after this
enters the language.

-jJ

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4