Re: Draft datatypes message

On 2002-06-26 20:33, "ext Brian McBride" <bwm@hplb.hpl.hp.com> wrote:


>> You might better make the choice between C and D, as their distinction
>> is IMO clearer.
> 
> I prefer B to C.

The problem with B is that, intuitively, "10" denotes the integer
value 10 in both cases, and therefore folks may be confused as
to what is being equated, the literal value or the datatype value.
In either case, they are the same. "10" = "10". 10 = 10.

E.g. some folks might in fact change their answer if you were
to use "10" and "10.0" or "0010".

The C test better reflects the istinction between tidy and
untidy semantics, because, even though the literals are string
equal, they intuitively denote different datatype values, so
that will force folks to consider which of the two (lexical
form or value) they are equating. Thus, while "10" = "10",
10 != "10".

Again, I recommend that you make the choice between tests C
and D.

Patrick 

--
               
Patrick Stickler              Phone: +358 50 483 9453
Senior Research Scientist     Fax:   +358 7180 35409
Nokia Research Center         Email: patrick.stickler@nokia.com

Received on Thursday, 27 June 2002 01:40:59 UTC