a Python person's experience with Ruby
Bruno Desthuilliers
bdesth.quelquechose at free.quelquepart.fr
Sun Dec 9 13:45:52 EST 2007
Lou Pecora a écrit :
> In article <475ae612$0$645$426a34cc at news.free.fr>,
> Bruno Desthuilliers <bdesth.quelquechose at free.quelquepart.fr> wrote:
>
>
>>>Thus: close;
>>>could replace close();
*Please* give proper attribution. I'd *never* suggest such a thing.
>
> Wouldn't this give an ambiguity?
>
> afcn=close # make an "alias" to the close function
> val=close() # set val to the return value of the close function
>
The point of Colin (who was the one making this suggestion) was that
parens could be omitted if there was no LHS.
More information about the Python-list
mailing list