This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-09-27
Channels
- # beginners (34)
- # boot (15)
- # cider (7)
- # cljs-dev (7)
- # cljsjs (2)
- # cljsrn (46)
- # clojure (130)
- # clojure-argentina (1)
- # clojure-colombia (2)
- # clojure-greece (1)
- # clojure-italy (53)
- # clojure-losangeles (1)
- # clojure-russia (15)
- # clojure-spec (8)
- # clojure-uk (100)
- # clojurescript (117)
- # core-matrix (1)
- # cursive (24)
- # datomic (41)
- # duct (1)
- # emacs (11)
- # fulcro (22)
- # graphql (4)
- # hoplon (3)
- # jobs (1)
- # lein-figwheel (3)
- # luminus (18)
- # lumo (52)
- # off-topic (57)
- # pedestal (2)
- # planck (12)
- # re-frame (22)
- # remote-jobs (1)
- # ring-swagger (6)
- # rum (7)
- # shadow-cljs (13)
- # yada (19)
is the expected behavior for defaults via ':or' not to be bound to :as ? (defn test-defaults [{:keys [ one two three], :or {three 3} :as params}] params ) (println (test-defaults {:one 1 :two 2})) was expecting to see {:one 1, :two 2 :three 3} but got {:one 1, :two 2}
:as should always return precisely the original arg before destructuring
update
is for updating things by key (index), nth
is simply for getting the nth item out of something, so it works with lists. guess it's a fine distinction but there you go
@mayur.nagekar Hi noob o/
is it possible to create more than one namespace in a file or to create nested namespaces in the same file in Clojure? I'm coming from F#/.NET where this is a pretty common thing to do.
Its uncommon in Clojure, even though it is supported, a lot of tooling assume you're not doing that, and so might behave strangely on your files.
@genec pretty sure more than one namespace in a single file is supported - don't think nested namespaces are possible though
@ghadi you mentioned official clojure launcher available on homebrew - what is the name ?
@gmercer it’s called “clojure” :) brew install clojure
(for 1.8.0) or brew install --devel clojure
(for 1.9.0-beta1). See https://clojure.org/guides/deps_and_cli
@alexmiller I saw that from a search - seemed too obvious 😉
still a wip… :)