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

Re: Sane "+" string concat proposal

Thread Previous | Thread Next
From:
Stephen P. Potter
Date:
April 24, 2001 15:18
Subject:
Re: Sane "+" string concat proposal
Message ID:
20010424222018.F412B729E1@belgarath.spotter.yi.org
Lightning flashed, thunder crashed and Nathan Wiger <nate@west.sun.com> whisper
ed:
| Michael G Schwern wrote:
| > 
| > Oh, not to seed the clouds or anything, but what about "+=" and ".="?
| > Any proposal will have to deal with those.
| 
| 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?

Does your plan mean that we can no longer have subs that are context
dependent?

-spp

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