[Python-ideas] Syntax for defining parametric decorators

Raymond Hettinger raymond.hettinger at gmail.com
Thu Jul 12 05:19:20 CEST 2012


On Jul 11, 2012, at 7:19 PM, Terry Reedy wrote:

> For people 'raised' with imperative languages without nested functions and currying, function currying is definately *not* 'self-explaining'. The difficultly is conceptual, not syntactical. I am 99% sure it would result in more confusion, not less.



FWIW, I've taught many Python classes this year and have found the current style easy to teach.

I agree with Terry's assessment that introducing new syntactic trickery would cause more problems than it would solve.

I also agree with Nick's sentiment that we would be better-off with a vocabulary that clearly distinguishes between between decorators and decorator factories.


Raymond

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20120711/0fb7e1c9/attachment.html>


More information about the Python-ideas mailing list