Re: monetary bug - Mailing list pgsql-hackers

From Dennis Bjorklund
Subject Re: monetary bug
Date
Msg-id Pine.LNX.4.44.0408230644180.9559-100000@zigo.dhs.org
Whole thread Raw
In response to Re: monetary bug  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: monetary bug
List pgsql-hackers
On Sun, 22 Aug 2004, Peter Eisentraut wrote:

> To me, this seems completely wrong-headed.  Data types should be defined 
> by what operations you can do on them, not by what output format they 
> have.

I totally agree, lets get rid of money all together.

If not, what makes money so special? Do we want other numeric types like 
hexnumber, octalnamber, weight, length, ... All of these are different 
ways to format a number in a user interface.

Of course one could imaging a system with units, so that if you multiplty
two lengths (meter) you get an area (meter^2) and so on.. But it's just
going to be complicated and no other programming language I know of have
gone that way.

-- 
/Dennis Björklund



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [PATCHES] ALTER SCHEMA ... SET TABLESPACE
Next
From: Philip Warner
Date:
Subject: Re: [PATCHES] ALTER SCHEMA ... SET TABLESPACE