News for hackers. Stuff that matters.
Re:Hidden features of Python by natrius on Monday September 22, 2008 @03:24PM (#311525)
"So ... why bother with adding a feature to the language when the language as it already exists can do it in one easily-comprehended line of six tokens?"

The decorator syntax is easier to read. It's at the top of the function where the arguments list and docstring are. Yes, there are tradeoffs when introducing new syntax, but decorators are definitely worth it.

There are no comments on this comment yet.