Re: Storing units in the database
From: Marshall Spight <marshall.spight_at_gmail.com>
Date: 7 Jul 2005 20:09:37 -0700
Message-ID: <1120792177.830368.92150_at_g49g2000cwa.googlegroups.com>
Date: 7 Jul 2005 20:09:37 -0700
Message-ID: <1120792177.830368.92150_at_g49g2000cwa.googlegroups.com>
Mikito Harakiri wrote:
>
> The key idea is that you treat the expression with unit symbols, for
> example
> [...]
> Now, when applied to the database, how should we store 20 feet? User
> defined types provide us some (quite unsophisticated) solution. But do
> we really have to program a class every time we want to do trivial
> conversions?
I believe that C++, for example, has everything you need to be able to do this sort of thing in the type system. I am not aware, however, of any body of people finding it to be worth the effort.
Marshall Received on Fri Jul 08 2005 - 05:09:37 CEST