clojure - Can two symbols be bound to the same var? -
in clojure, can ever true?
(= #'x #'y)
examples of doesn't work:
user> (def x 1) #'user/x user> (def y x) #'user/y user> (= #'x #'y) false user> (def y #'x) #'user/y user> (= #'x #'y) false
(refer 'clojure.core :only '[=] :rename '{= equal?}) (= #'= #'equal?) ;= true
Comments
Post a Comment