Re: Re: decorators again (Guido's @ solution)
Mark Hahn <[email protected]> Sun, 8 Aug 2004 15:11:48 -0700
| Newsgroups | gmane.comp.lang.prothon.user |
|---|---|
| Organization | Hahn Creative Applications |
| Message-ID | <[email protected]> |
On Sun, 08 Aug 2004 14:04:30 -0700, Paul Prescod wrote:
> 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""")
Luckily I get to do it my way since he can't change his. I can even argue
compatibility with the old doc strings. It is certainly unambiguous my way
and reads well.