Python dot-equals (syntax proposal)
clp2 at rebertia.com
Fri Apr 30 19:24:06 CEST 2010
On Fri, Apr 30, 2010 at 10:05 AM, John Bokma <john at castleamber.com> wrote:
> "D'Arcy J.M. Cain" <darcy at druid.net> writes:
>> On Fri, 30 Apr 2010 09:04:59 -0700 (PDT)
>> Jabapyth <jabapyth at gmail.com> wrote:
>>> foo = "Hello world"
>>> foo.=split(" ")
>> foo = "Hello world"
>> bar = foo.split() # side note - split() splits on whitespace by default
>> so much clearer? Do you really want to see Python turn into Perl?
> Oh, boy, there we go again. Can you and your buddies please refrain from
> using Perl as a kind of uber-argument? Just write why you think it's
> wrong. Bonus points if you can use Python in your arguments.
> Why I am asking this is that most "Oh, like Perl" statements I've seen
> the past months were made by people who either haven't used Perl
> themselves or have very little skill in the language. This is a Python
> 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
The .= operator does inplace modification of the object on the left.
""" -- Synopsis 3: Perl 6 Operators (http://feather.perl6.nl/syn/S03.html)
One phrase: "Periodic Table of the Operators"
More information about the Python-list