This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-08-08
Channels
- # announcements (1)
- # babashka (18)
- # beginners (32)
- # calva (3)
- # chlorine-clover (4)
- # cider (14)
- # clj-commons (24)
- # clj-kondo (1)
- # clojure (34)
- # clojure-europe (4)
- # clojure-filipino (1)
- # clojure-uk (4)
- # clojuredesign-podcast (2)
- # clojurescript (6)
- # conjure (3)
- # core-async (2)
- # datahike (1)
- # datomic (3)
- # emacs (3)
- # esprit (20)
- # fulcro (4)
- # graalvm (11)
- # helix (13)
- # honeysql (4)
- # jobs (1)
- # lumo (1)
- # observability (4)
- # off-topic (11)
- # other-lisps (6)
- # pathom (6)
- # re-frame (13)
- # reagent (1)
- # reitit (1)
- # shadow-cljs (26)
- # web-security (2)
- # xtdb (10)
Hey guys, not sure if this is Atom or Chlorine specific or a general, I'm-doing-things-incorrectly kind of thing - I've just been having some issues with copying and pasting code from the Getting Clojure epub book I've been learning from - when I copied this bit of code: (ns blottsbooks.core (:require blottsbooks.pricing) (:gen-class)) into my core.clj file and submitted it for evaluation I got back a clojure.lang.ExceptionInfo error "Call to clojure.core/ns did not conform to spec." and when I copied and pasted (def discount-rate 0.15) and submitted that I got back a could not resolve symbol def in this context error
Do you need []
around blottsbooks.pricing
? Like (ns blottsbooks.core (:require [blottsbooks.pricing]) (:gen-class))
Is there some issue where hidden characters are being copied over from the book text that I'm not seeing? Because when I type these out manually they evaluate and run fine with the proper expected results.
Seems like a hidden character thing. Atom have an option to show invisible characters, maybe toggle it and see if there's something extra. I remember having problems with it while copy-pasting things from PDF