Fork me on GitHub
#braveandtrue
<
2018-09-02
>
moo13:09:33

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

moo13:09:38

(refer isn’t working)

moo13:09:44

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

moo13:09:51

(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)))

moo13:09:22

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)))

moo13:09:46

also alias works. odd…

moo13:09:29

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

moo13:09:28

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

moo13:09:18

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

moo14:09:49

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

8