Details
-
Type:
Defect
-
Status:
In Progress
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Approval:Test
Description
Apparently, defttrace does not support functions with doc-strings. I tried replacing defn with deftrace in a function of mine (as the docs indicated) and I got the following error -
java.lang.IllegalArgumentException: Don't know how to create ISeq from: Symbol </code></pre> Sample code to reproduce the error - <pre><code>(deftrace fact "Calculate the factorial of x" [x] (if (< x 1) 1 (* x (fact (- x 1)))))
Would be great if this bug is fixed, all my functions have doc-strings ![]()
Issue fixed in tools.trace 1.0 which is compatible for both Clojure 1.2.x and 1.3.
The macro now verifies if the first argument is a doc string and adapts accordingly.
This ticket can be closed.