Skip to content

Instantly share code, notes, and snippets.

View eduardoejp's full-sized avatar

Eduardo Julián eduardoejp

  • Santo Domingo, Dominican Republic
  • 18:36 (UTC -04:00)
View GitHub Profile
@eduardoejp
eduardoejp / verify-error.clj
Created January 28, 2011 19:40
Trouble when defining a class with this macro.
(defmulti ctor (fn [c & args] c))
(defmethod ctor :default [clss & args] (eval `(new ~clss ~@args)))
(defprotocol FObject
"Provides the basic slot accessing and mutating functionality."
(get-slot [self k])
(set-slot [self k v]))
(defn- extract-tagged
[ktag testfn coll]