(1) I think there is great mileage in combining the fixeddecimal concept with Martin Fowler's Quantity pattern, so that a variable could be defined as not just two decimal places but also (say) "GBP" or "USD", and it would be an error to add the two. Same applies for adding metres, kilograms and other quantities. There has also been discussion that the 'type' of a quantity should determine what math should apply.
Isn't this something that is ideally suited for implementation in a Python module, based on a core implementation of fixed decimal numbers?  Jack Jansen  ++++ stop the execution of Mumia AbuJamal ++++ Jack.Jansen@oratrix.com  ++++ if you agree copy these lines to your sig ++++ www.oratrix.nl/~jack  see http://www.xs4all.nl/~tank/spgl/sigaction.htm
On Fri, 24 Dec 1999, Jack Jansen wrote:
(1) I think there is great mileage in combining the fixeddecimal concept with Martin Fowler's Quantity pattern, so that a variable could be defined as not just two decimal places but also (say) "GBP" or "USD", and it would be an error to add the two. Same applies for adding metres, kilograms and other quantities. There has also been discussion that the 'type' of a quantity should determine what math should apply.
Isn't this something that is ideally suited for implementation in a Python module, based on a core implementation of fixed decimal numbers?
I'd agree with Jack here.
The "simple" change of a scale for the Long values is nice. Starting to lump in features like this begins to get a little messier...
Happy Holidays, g
On Fri, 24 Dec 1999 12:05:22 0800 (PST), you wrote:
On Fri, 24 Dec 1999, Jack Jansen wrote:
(1) I think there is great mileage in combining the fixeddecimal concept with Martin Fowler's Quantity pattern, so that a variable could be defined as not just two decimal places but also (say) "GBP" or "USD", and it would be an error to add the two. Same applies for adding metres, kilograms and other quantities. There has also been discussion that the 'type' of a quantity should determine what math should apply.
Isn't this something that is ideally suited for implementation in a Python module, based on a core implementation of fixed decimal numbers?
I'd agree with Jack here.
Me too  I thought I said that in point 2, but in retrospect I didn't say it clearly enough :)
 Andy
participants (3)

andy＠robanal.demon.co.uk

Greg Stein

Jack Jansen