~ looks like a string to me Larry sycophant that I am.
, also looks a little like a string. And is keyboard friendly.
Its doubtless naive to suggest it, but why not:
Perl 5 Perl 6
--------------- ---------------
-> .
+ +
. ~+
eq ~==
ne ~!=
gt ~>
ge ~>=
lt ~<
le ~<=
cmp ~<=>
.= ~+=
~=+ (concat after)
=~ =~
!~ !~
You can leave aliases for eq, ne, gt... or depreciate them. -But leave
precedence as is...
Perl 5 Perl 6
----------------------------- ----------------------------
$res = $var + $var2; $res = $var + $var2;
$name = "This" . "that"; $name = "This" ~+ "that";
$name = "This" . $that; $name = "This" ~+ $that;
print "Next is " . $i + 1; print "Next is " ~+ $i + 1;
$me = $name . getpwuid($<); $me = $name ~+ getpwuid($<);
- YA string concat proposal Michael G Schwern
- Re: YA string concat proposal Nathan Wiger
- Re: YA string concat proposal Casey West
- Re: YA string concat proposal Michael G Schwern
- Re: YA string concat proposal Jonathan Scott Duff
- Re: YA string concat proposal James Mastros
- Re: YA string concat proposal Uri Guttman
- Re: YA string concat proposal John Porter
- Re: YA string concat proposal Garrett Goebel
- Re: YA string concat proposal Nathan Wiger
- Re: YA string concat proposal Jarkko Hietaniemi
- Re: YA string concat proposal Stephen P. Potter
- Regexp::Func (Re: YA string concat proposal) Nathan Wiger
