欢迎!请查看关于页面以获取更多关于该网站如何运行的信息。
什么是(class =)和(type =)之间的区别?谢谢!
通过使用REPL
=> (source type) (defn type "Returns the :type metadata of x, or its Class if none" {:added "1.0" :static true} [x] (or (get (meta x) :type) (class x))) nil => (source class) (defn class "Returns the Class of x" {:added "1.0" :static true} ^Class [^Object x] (if (nil? x) x (. x (getClass)))) nil