> If, instead, you wrote:
>
> $me = $name + getpwuid($<);
>
> You would get numeric addition. Always. In this way, you maintain a
> reliable semantic separation of string concat and numeric addition,
> while gaining a syntax that is similar to other HLL's. Having "$var"
> expand $var is the reason this is possible.
So, what would this do?
$user_pass = (getpwuid($<))[0] + (getpwuid($<))[1];
Your operator is still ambiguous, since you probably want a concat, but
have no place for the quotes. The convention needs to consider more than
just variables.
- Sane "+" string concat proposal Nathan Wiger
- Re: Sane "+" string concat proposal Michael G Schwern
- Re: Sane "+" string concat proposal Dan Brian
- Re: Sane "+" string concat proposal Jonathan Scott Duff
- Re: Sane "+" string concat proposal John Porter
- recap on new operators? Dave Storrs
- Re: Sane "+" string concat proposal Mark Koopman
- Re: Sane "+" string concat proposal Michael G Schwern
- Re: Sane "+" string concat proposal Casey West
- Re: Sane "+" string concat proposal Stephen P. Potter
- Re: Sane "+" string concat proposal Casey West
- Re: Sane "+" string concat proposal Stephen P. Potter
- Re: Sane "+" string concat proposal Austin Hastings
