On Fri, 24 Dec 1999, Jack Jansen wrote: > > (1) I think there is great mileage in combining the > > fixed-decimal 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 -- Greg Stein, http://www.lyra.org/
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4