Why do I get an error when I run (use 'clojure.contrib.repl-utils)?

前端 未结 2 1118
小蘑菇
小蘑菇 2021-01-27 13:56

I found that I can use Chris Houser\'s repl-utils library (clojure.contrib.repl-utils/source or show) for poking into Java by reading Programming Clojure book page 20.

相关标签:
2条回答
  • 2021-01-27 14:41

    it works for me, we need more information to help you: what happend exactly when you run it? does it raise an error?

    0 讨论(0)
  • 2021-01-27 14:43

    FOUND A SOLUTION

    I asked and got some answers.

    In short, - it's OK to have it require, but gives me an error to refer. As a result, I need to use as follows

    user=> (require 'clojure.contrib.repl-utils)
    user=> (clojure.contrib.repl-utils/expression-info '(+ 1 2))
    {:class java.lang.Number, :primitive? false}
    
    0 讨论(0)
提交回复
热议问题