Barry Warsaw wrote: >... > I know all the practical problems with this suggestion, but to me, > that's the most natural spelling. I suppose something like this might > also not be horrible: > > def foobar [ > .author = 'Guido van Rossum' > .deprecated = True > classmethod > ] (self, arg) > > Naw, these probably don't mix well. Hmm, > > def foobar { > author = 'Guido van Rossum' > deprecated = True > } [classmethod, spoogemethod, insanity > ] (self, arg): > # Now what the heck does this thing do? I think that Guido's point is that some things belong before the def because they really change the behaviour of the function and others belong after because they are "just" annotations: def foobar [classmethod, spoogemethod] (self, arg) { author = "Guido van Rossum" zope_public = "True" }: pass Paul Prescod
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