Python dot-equals (syntax proposal)
John Bokma
john at castleamber.com
Fri Apr 30 14:18:50 EDT 2010
Chris Rebert <clp2 at rebertia.com> writes:
> On Fri, Apr 30, 2010 at 10:05 AM, John Bokma <john at castleamber.com> wrote:
[..]
>> On top of that, it's not possible in Perl (heh, no surprise there). The
>> only thing that comes close is:
>
> Actually/ironically, it does appear to be in Perl 6:
> """
> Mutating method call
> $obj.=meth
> The .= operator does inplace modification of the object on the left.
> """ -- Synopsis 3: Perl 6 Operators (http://feather.perl6.nl/syn/S03.html)
I stand correct, thanks.
--
John Bokma j3b
Hacking & Hiking in Mexico - http://johnbokma.com/
http://castleamber.com/ - Perl & Python Development
More information about the Python-list
mailing list