On Sat 28 Dec 2013 at 05:12:24AM -0600, guns wrote:

>     (defn +. [precision & xs] …)
>     (defn *. [precision & xs] …)
>     …
>     (defmacro with-precision [precision & body]
>       `(let [~'+ ~(partial +. precision)
>              …]
>          ~@body))

I just realized that this does not help with functions already defined
in terms of the existing arithmetic functions, which is the problem that
you posed.

So I guess the answer is still to explicitly pass your precision to
every function that requires it. This seems onerous, but we gain the
important advantage of transparency.

    guns

Attachment: pgprpWXAVEfE8.pgp
Description: PGP signature

Reply via email to