[Oc-pm] perl6

Bob Mathews bobmath11 at icloud.com
Tue Sep 26 11:25:25 PDT 2017


Perl6 Deep Dive p58:
> Thus, any Rat number is a rational value equal to the division N/D. The integer numerator part is a value that can be arbitrarily long. The denominator part is a 64-bit integer.


FOR THE LOVE OF GOD, WHY? This “optimization” of limiting the denominator to 64 bits makes the Rat type useless for my purposes. It silently converts to a double-precision float if the denominator overflows.

-bob


More information about the Oc-pm mailing list