develooper Front page | perl.perl6.language | Postings from April 2001

Re: Sane "+" string concat proposal

Thread Previous | Thread Next
From:
Dan Brian
Date:
April 24, 2001 15:25
Subject:
Re: Sane "+" string concat proposal
Message ID:
Pine.BSF.4.10.10104241621210.98243-100000@brians.org
> | Under what I originally posted:
> | 
> |    $a += "$b";    # string
> |    $a += $b;      # numeric
> 
> You still haven't given a good explanation of
> 
> $a += sub();	  # is it a string or a number?

The quotes don't work. Anything but the most basic statement introduces
way more ambiguity than we should be comfortable with. And the idea that
<" +> should be interpreted by the parser as an op, well, doesn't work. At
all.


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About