std.rational?

BLM768 blm768 at gmail.com
Fri Sep 27 13:08:05 PDT 2013


On Friday, 27 September 2013 at 15:36:12 UTC, Dmitry Olshansky 
wrote:
>
> I bet the reason is practicality: try using full names of
> denominator/numerator in some involved numeric code. It's a 
> mess.
> One may argue you need not access numerator and denominator 
> explicitly that much but I think it happens.

I'm not sure if this fits with Phobos style, but they could be 
defined as "numerator" and "denominator" and aliased to "num" and 
"denom", respectively. That way, we get the best of both worlds.



More information about the Digitalmars-d mailing list