Another thought about: [decorator] def foo(args): ... What are newcomers going to make of this? It looks like a thrown-away list followed by a def, and there's no clue that there's any connection between the two. And even if the newcomer suspects that there is some kind of connection, what are they going to look up in the manual? At least with def foo(args) [decorator]: ... it's clear that (1) something different is going on, and (2) it's somehow a part of the 'def' statement. Everywhere else in Python where you can say something someotherthing it means "do something and then do someotherthing", and the combined result can be deduced from knowing what something and someotherthing each do on their own. This breaks that. Greg Ewing, Computer Science Dept, +--------------------------------------+ University of Canterbury, | A citizen of NewZealandCorp, a | Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. | greg at cosc.canterbury.ac.nz +--------------------------------------+
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