Nathan Wiger wrote:
>
>Here's something I was thinking about at lunch:
>
>   $concated_number = "$number" + "$other_number";
>   $numerical_add   = $number + $other_number;
>

One major, MAJOR pet peeve I have wrt Javascript is that it uses
+ to mean concatenation as well as addition, and that it (like perl)
allows scalars to contain strings or numbers.

One is continually forced to jump through hoops to do simple arithmetic.
User has entered a number -- ah, but it comes in as a string. Want to
add 666 to it? You have to do this nonsense:

    $sum = $addend - 0 + 666;

You constantly have to subtract zero in order to force a numeric
context. Asinine.

Whatever the final Perl 6 solution to string concatenation/addition is,
don't let it become the ambiguous mess that Javascript is.


My two cents. Thanks for listening.

 ----------------------------------------------------------------------
 Eric J. Roode                                            [EMAIL PROTECTED]
 Senior Software Engineer, Myxa Corporation

Reply via email to