Re: Eclipse

[prev] [thread] [next] [lurker] [Date index for 2006/11/05]

From: A. Pagaltzis
Subject: Re: Eclipse
Date: 19:17 on 05 Nov 2006
* Tony Finch <dot@xxxxx.xx> [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/>;
There's stuff above here

Generated at 20:01 on 07 Nov 2006 by mariachi 0.52