Nathan Wiger wrote: > string concatenation would be acheived by the > *combination* of "" and +. > $string3 = "$string1" + "$string2"; > Here's the key: The quotes are REQUIRED. If you left them > off, you'd get numeric addition. There is no magic type > inference. That, imho, is bending way too far in the wrong direction, just for the sake of having a "+" operator that seems to DWIM on both strings and numbers. By that logic, we should dispense with cmp, eq, lt, etc. and replace them with "$a" <=> "$b" "$a" == "$b" "$a" < "$b" etc. There really is no inherent benefit in having "+" mean concat in addition to, uh, addition, and it seems to be causing an undue amount of consternation. Certainly "+" is no more intuitive than "##" or "cc" or "cat". I also don't like the special status accorded the the left operand in your proposal. Seems unecessarily capricious and restricting. -- John Porter It's a sky-blue sky The satellites are out tonight let x = x
- Re: Sane "+" string concat proposal Casey West
- how about just juxtaposing? (Re: Sane "+&q... Jarkko Hietaniemi
- Re: how about just juxtaposing? (Re: Sane &... Michael G Schwern
- Re: how about just juxtaposing? (Re: Sa... Casey West
- Re: how about just juxtaposing? (Re: Sa... Edward Peschko
- Re: how about just juxtaposing? (Re: Sa... David L. Nicol
- Re: how about just juxtaposing? (R... Michael G Schwern
- Re: Sane "+" string concat proposal Stephen P. Potter
- Re: Sane "+" string concat proposal Nathan Wiger
- Re: Sane "+" string concat proposal Dan Brian
- Re: Sane "+" string concat proposal John Porter
- Re: Sane "+" string concat proposal Austin Hastings
- Re: Sane "+" string concat proposal Michael G Schwern
- Re: Sane "+" string concat proposal Casey West
- Re: Sane "+" string concat proposal Nathan Wiger
- Re: Sane "+" string concat propos... Stephen P. Potter
- Re: Sane "+" string concat pr... Dan Brian
- Re: Sane "+" string concat pr... Nathan Wiger
- Re: Sane "+" string conc... Dan Sugalski
- Re: Sane "+" string concat proposal jc vazquez
- recap on new operators? Dave Storrs