* Tony Finch <[email protected]> [2006-11-05 18:55]:
> Of course Perl uses x to multiply strings and * to multiply
> numbers. Yay for non-polymorphic operators! Even more fun in
> O'Caml where integer arithmetic is + - * / and floating point
> arithmetic is +. -. *. /. .
Yeah, because it's obviously better when
a + b
can do two different things depending on the types of the values,
resulting in things like
1 + 2 + " bottles"
producing a semantically different result from
"Bottles: " + 1 + 2
as in Javascript. Clearly, having to write
"" + a + b
is better than having to write
a . b
Regards,
--
Aristotle Pagaltzis // <http://plasmasturm.org/>