Message127655
-1 on an implicit, lossy conversion.
The principal reasons for using decimal in the first place is avoid representation error. For example, when money is being represented as a decimal, it is improper to convert it to float (where it can no longer be compared for equality and where the representable range is smaller).
A user needs explicit control in this situation, converting to float when it doesn't matter, or using an API that allows the decimal repr to be handled.
One other issue is that in an RPC environment, good design suggests that the client do its best to match the type expectations for of the functions on the server. Implicit signature changing makes even less sense for RPC than it does in a regular application. |
|
Date |
User |
Action |
Args |
2011-01-31 20:02:16 | rhettinger | set | recipients:
+ rhettinger, gdr |
2011-01-31 20:02:15 | rhettinger | set | messageid: <1296504135.99.0.154486166039.issue11084@psf.upfronthosting.co.za> |
2011-01-31 20:02:15 | rhettinger | link | issue11084 messages |
2011-01-31 20:02:15 | rhettinger | create | |
|