|
In the precfunc implementation of xreal, (abs_xreal xfn p) merely needs to apply xfn to p. But xfn is a particular implementation, not visible above the abstraction barrier. abs_xreal presents the ability to map a precision to an interval of that width above the abstraction barrier. The precfunc implementation implements abs_xreal very directly and simply. But other implementations of xreal, such as the tristream implementation where an xreal is an infinite sequence of digits in base 3, make abs_xreal less trivial. The point of defining abs_xreal is to make programs above the abstraction barrier work no matter how trivially or complicatedly it happens to be implemented.
Mike O'D.
|