On Mon, 2004-04-05 at 11:50, Shane Hathaway wrote: > Mark Russell wrote: > > What about: > > > > [as classmethod] > > def foo(bar, baz): > > pass > > > > To me this is more obvious (and less like p*rl) that *[classmethod], and > > it is also currently a syntax error so won't break existing code. > > I agree, it's nice. You could even use this syntax at the interactive > prompt. The "is" keyword is another choice, too. Since that is illegal syntax today, it would alleviate my primary concern with decorator-before-def syntax. And the 'as' keyword does help tie it to the following def. -Barry
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