Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • any body has answer for, what if a Fixnum + Fixnum, then the type can be either a Fixnum or Bignum type? The Fixnum is limited to 32 or 64 bit integers, while Bignum is arbitrary-length integer. Then the return type is not predictable Commented Jan 4, 2016 at 7:41
  • 2
    You don't make the result's type dependent on the operands' values. + gets defined to return a Fixnum (with possible wraparound) for all operands, or it gets defined to return a Bignum for all operands. Commented Sep 23, 2024 at 16:51