|
Robby Findler, our new faculty member who created DrScheme, confirmed that in mzscheme (the interpreter/compiler behind the DrScheme user interface), every real number is a (possibly inexact) rational number. He thinks, and I think, that MIT Scheme is the same, but we didn't check. The purpose of providing separate types of real and rational appears to be to accommodate possible future extensions that provide irrational reals. For example, if we integrated our xreals thoroughly into Scheme, we would arrange that real? and exact? would both be true for an xreal, but rational? would usually be false or undefined.
Mike O'D.
|