News for hackers. Stuff that matters.
Re:Hidden features of Python by ajross on Monday September 22, 2008 @03:06PM (#311502)
Right. 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? I'm sure you like the shorter syntax better. But I didn't know it, despite years of experience with scripting languages (and even this paradigm) that should have informed me about what that code means.

But it didn't, for the simple reason that it looked funny because I haven't been keeping up with Python. I'll say it one last time: this idea, that the language should cater to its experts by adding features wherever possible, is what has killed C++ as a hacker's language. Python is walking blindly down the same path.

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.

Re:Hidden features of Python by schtog on Monday September 22, 2008 @05:53PM (#311694)
is it? python3000 has deleted some unnecessary stuff. i dont really see your concern. it seems gvr is still concerned about the opposite of what you claim.