[Python-ideas] @return?

Masklinn masklinn at masklinn.net
Tue Apr 13 23:51:30 CEST 2010


On 13 Apr 2010, at 23:36 , Conrad Irwin wrote:
> 
> There are uglinesses though, a simplistic reading of "@return" would
> imply the existence of a function called "return", and while the return
> statement can be used with brackets, it certainly should not be turned
> into a function. Also:

So now there are two completely different language elements with the
exact same syntax and used in the exact same context?

Strangely enough, I don't see that working too well.

Trying to find a way to get anonymous functions ("full", in the defs
sense) into the language would probably be a better way to pass time.



More information about the Python-ideas mailing list