Re: Values have types ??

From: Leandro Guimarães Faria Corsetti Dutra <lgcdutra_at_terra.com.br>
Date: Sat, 06 Sep 2003 01:09:08 +0200
Message-Id: <pan.2003.09.05.23.09.08.582585_at_terra.com.br>


On Thu, 04 Sep 2003 10:20:32 -0700, Costin Cozianu wrote:

> 2
>
> (pick your favorite representation in bits and pieces and your favorite
> set theory)
>
> I wonder if you can clarify for me what type do you think it has.

        Could be integer, real, string...

        Or even better, USD, GBP, CHF, code...

        The discussion was about values implicitly *in a RDB*. There, a value will *always* have a type. So your trap catches no mice... for this kind of mouse always live in a RDB.

        More basically, even outside of a RDBMS the mere context already gives hints as to type.

        For example, take 20. To translate that as "ten", what I bet you've done automagically, you have to assume base ten... it doesn't mean "ten" in octal, binary or hexadecimal. So the context had already given you a (admittedly weak) type constraint.

-- 
 _   Leandro Guimarães Faria Corsetti Dutra     +41 (21) 648 11 34
/ \  http://br.geocities.com./lgcdutra/         +41 (78) 778 11 34
\ /  Answer to the list, not to me directly!    +55 (11) 5686 2219
/ \  Rate this if helpful: http://svcs.affero.net/rm.php?r=leandro
Received on Sat Sep 06 2003 - 01:09:08 CEST

Original text of this message