Several people have independently raised the idea that BigInt and BigDecimal could transparently work together. For example, Fabrice Bellard wrote:
BigInt compatibility: it would make sense to allow mixing BigInt and
BigDecimal in binary operations (the result would be a BigDecimal). On
the other hand it is simpler to require identical types for both operands.
While we could allow this mixed operation, I'd prefer to start out with strictness, following the pattern established by BigInt. I want to continue to encourage a programming style of being consistent about numeric types.
In personal communication, Fabrice responded, "I prefer strictness too."
Several people have independently raised the idea that BigInt and BigDecimal could transparently work together. For example, Fabrice Bellard wrote:
While we could allow this mixed operation, I'd prefer to start out with strictness, following the pattern established by BigInt. I want to continue to encourage a programming style of being consistent about numeric types.
In personal communication, Fabrice responded, "I prefer strictness too."