(defprotocol symbolicExpr
(evalx [this args]))
(deftype x [a])
(let [y #(+ 1 2)]
(extend-type x
symbolicExpr (evalx [this args] (y
(evalx (x. 0) 0)
On Wednesday, December 26, 2012 6:16:13 PM UTC-8, Sunil Nandihalli wrote:
>
> Hi Everybody,
> It looks like the following way of definit
This is exactly where "reify" is used for. There is a succinct piece of
description in "The Joy of Clojure" on Page 198, from where I quote the
following code example: (FIXO is a protocol like your symbolicExpr)
(defn fixed-fixo
([limit] (fixed-fixo limit []))
([limit vector]
(