multimethod Questions
1
Solved
I am trying to write a macro in Clojure that allows for evaluation of a series of simple "def" expressions. I am a n00b when it comes to macros. The idea is that
(my-defs y1 1
y2 "taco")
should...
Ecumenism asked 5/9, 2011 at 22:7
3
Solved
I was looking at the clojure.core function re-groups:
(defn re-groups [^java.util.regex.Matcher m]
(let [gc (. m (groupCount))]
(if (zero? gc)
(. m (group))
(loop [ret [] c 0]
(if (<= c gc...
Erst asked 31/8, 2011 at 17:12
3
Solved
I read many article about how to implement multimethod in c++:
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2003/n1529.html
http://www.codeproject.com/KB/recipes/mmcppfcs.aspx
http://...
Bolshevism asked 30/1, 2011 at 18:28
1
Solved
I would like to do something like:
(defrecord Base [])
(defrecord Person [])
(defrecord Animal [])
(derive Person Base)
(derive Animal Base)
(isa? Animal Person)
Is this possible?
Update:
I'...
Druce asked 3/1, 2011 at 17:17
© 2022 - 2024 — McMap. All rights reserved.