This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-09-23
Channels
- # alda (1)
- # beginners (26)
- # boot (88)
- # carry (2)
- # cider (6)
- # clara (6)
- # cljs-dev (43)
- # cljsrn (14)
- # clojure (48)
- # clojure-belgium (2)
- # clojure-czech (4)
- # clojure-dev (1)
- # clojure-dusseldorf (7)
- # clojure-japan (1)
- # clojure-russia (55)
- # clojure-spec (65)
- # clojure-taiwan (1)
- # clojure-uk (28)
- # clojurescript (154)
- # cursive (5)
- # datomic (1)
- # editors (2)
- # emacs (29)
- # funcool (1)
- # jobs (3)
- # lambdaisland (5)
- # leiningen (1)
- # luminus (2)
- # new-channels (1)
- # off-topic (17)
- # om (18)
- # om-next (10)
- # onyx (24)
- # parinfer (14)
- # pedestal (4)
- # planck (3)
- # re-frame (69)
- # reactive (2)
- # reagent (3)
- # schema (2)
- # spacemacs (2)
- # sql (13)
- # vim (11)
I’ve found I don’t really need flycheck so much in a REPL-oriented development workflow
I also run sexps in cider often while building up a function, and if that fails, cider will point out what I did wrong
I'm a bit confused by something. The documentation for CLJ-1993, included in 1.9-alpha12, says "Add new print flag *print-namespace-maps*
to optionally suppress namespace map syntax. Default flag to false. Set flag to true as part of the standard REPL bindings. This allows repl users to (set! *print-namespace-maps*
false) if desired."
But that doesn't seem to work for me:
db.seed.create-specs> (set! *print-namespace-maps* false)
false
db.seed.create-specs> (println *print-namespace-maps*)
true
Can anyone tell me why?I should note that (binding [*print-namespace-maps* false] (println {:foo/bar 1 :foo/baz 2 :foo/bap 3}))
and (do (set! *print-namespace-maps* false) (println {:foo/bar 1 :foo/baz 2 :foo/bap 3}))
work as expected. But it'd be really nice to be able to turn it off at the REPL, and I thought alpha12 specifically added that.
I can’t reproduce your code snippet above
user=> *print-namespace-maps*
true
user=> {:a/b 1}
#:a{:b 1}
user=> (set! *print-namespace-maps* false)
false
user=> *print-namespace-maps*
false
user=> {:a/b 1}
{:a/b 1}
that said, I’m in a base Clojure repl here, not lein/boot/or other REPL
and this is dependent on what env the REPL you’re using sets - it’s entirely possible a different repl would not be setting *print-namespace-maps*
in the environment around evaluation like the Clojure repl (now) does
that’s not something we can fix from Clojure though
the only reason set!
works here is that the REPL is binding *print-namespace-maps*
around your eval
I want to map every element of a vector except the first. What's a concise way to do that? I.e. (mapv f my-vec)
but leave the first element unchanged.
@benjy timbre has a console appender
:println {:enabled? true}
How could I get true here
(def xxx (fn []))
(def yyy (fn []))
(= xxx yyy)
via quoting?@hlolli depends what question you want to ask with your =
. (= (fn []) (fn []))
is not true, but (= '(fn []) '(fn []))
is certainly true
I want the truth and nothing but the truth 😛 (so the latter one), there is to say, some combo of '~ but Im not sure which I need here to resolve the symbol and then quote.
ok, so if it's been bound to a symbol then it's not true, basically. a function is a class that's been generated. two functions are not the same thing even if they were generated from the same code. afaik, the code isn't kept anywhere, so there's probably no way to establish that they were created from the same code
hmm good point, I guess this would then only be possible with a macro, but in my case macro would be stupid. Thanks for this input @bfabry
I used to use LT. I kinda consider it abandoned now and it had a lot of problems when I left. I used Emacs for a while but couldn't deal with the yak shaving every time I updated plugins. I use Cursive now which I like a lot
@bfabry what is yak shaving?
I use emacs and don't know what's this
yak shaving is a term for non-core work. ie every time I updated emacs plugins something would stop working and I'd waste some time fixing it
LightTable is what I install for all people I teach Clojure to. But this is so controversial topic that everyone has their own opinion. Ask me then young cyberpunks go with Emacs, and corporate/enterprise kind of type go with Cursive(IntelliJ). But you find much exception to my generalization.
@sbauer is actually in the process of freshening up Light Table. It's been getting more love recently
haha jesus after something like 15 years of using only vim as an editor I never expected to be called a corporate/enterprise type 😛
I'm probably wrong about LT, that was the impression I got well over a year ago. that's a long time