Colin Law wrote in post #970616: > On 25 December 2010 00:37, Peter Vandenabeele <[email protected]> > wrote: ... >> I am not in favor of D because it silently changes the class >> of the result and this violates the principle of least surprise. >> If you want Rational, use it from the start then. > > For D there is no reason why the class of the result needs to change > to Rational. It could stay as BigDecimal but internally store the > data as a Rational.
Ah, I see. I had not thought it that way. Thanks, Peter -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

