3 ms·
Armin Ronacher (prominent Python developer) included a critique of decorators in a post about a month ago making precisely your point: > Decorators are somewha
by kbd 15y ago
Armin Ronacher (prominent Python developer) included a critique of decorators in a post about a month ago making precisely your point:
> Decorators are somewhat of a pain because there is a difference between @foo and @foo(). If they were declared in a way that the former means the latter we would all be much happier now. Every time I want to introduce a parameter to a previously parameterless decorator makes me want to hit myself and the author of the decorator PEP with a stick.
http://lucumr.pocoo.org/2011/7/9/python-and-pola/ http://lucumr.pocoo.org/2011/7/9/python-and-pola/
Discussed on HN too:
http://news.ycombinator.com/item?id=2744703 http://news.ycombinator.com/item?id=2744703