Re: Re: decorators again (Guido's @ solution)
Paul Prescod <[email protected]> Sun, 08 Aug 2004 14:04:30 -0700
| Newsgroups | gmane.comp.lang.prothon.user |
|---|---|
| Message-ID | <[email protected]> |
Mark Hahn wrote:
> Guido has said: "If I could design a language from scratch, I might want to
> move docstrings to before the 'def' as well" in the same message he defends
> his choice of the at-string syntax:
>
> http://mail.python.org/pipermail/python-dev/2004-August/047112.html
>
> So I think he is thinking of something like this:
>
> @"""'doIt' solves all the world's problems"""
> @accepts(Int, (Int,Float))
> @returns((Int,Float))
> def doIt(a,b):
> blah blah blah
I think that he was thinking of something more like:
@doc("""doIt solves all the world's problems""")
Paul Prescod