braveandtrue 2018-09-02

Hello brave people, I have a little problem with the-divine-cheese-code part

(refer isn’t working)

even joker-linter doesn’t like it. So this code doesn’t work:

(ns the-divine-cheese-code.core)
;; Ensure that the SVG code is evaluated
(require 'the-divine-cheese-code.visualization.svg)
;; Refer the namespace so that you don't have to use the
;; fully qualified name to reference svg functions
(refer 'the-divine-cheese-code.visualization.svg)

(def heists [{:location ;;SNIPPED OUT

(defn -main
  [& args]
  (println (points heists)))

Whereas this code does work:

(ns the-divine-cheese-code.core)
;; Ensure that the SVG code is evaluated
(require 'the-divine-cheese-code.visualization.svg)
;; Refer the namespace so that you don't have to use the
;; fully qualified name to reference svg functions
(refer 'the-divine-cheese-code.visualization.svg)

(def heists [{:location "Cologne, Germany" ;; SNIPPED OUT

(defn -main
  [& args]
  (println (the-divine-cheese-code.visualization.svg/points heists)))

also alias works. odd…

actually, none of this is working right. I wonder what’s up…

well, all the ns macro code examples work, so I suppose it doesn’t matter. Never mind. 🙂

well… maybe not. I get nullpointerexception doing the example code for (min)

never mind all the above, I figured it out. I just needed to reload the repl and clear the namespaces. 🙂

👍🏼 2