This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-11-23
Channels
- # announcements (66)
- # babashka (41)
- # beginners (93)
- # calva (10)
- # cider (2)
- # clj-kondo (112)
- # cljs-dev (6)
- # cljsrn (1)
- # clojure (44)
- # clojure-dev (10)
- # clojure-europe (35)
- # clojure-italy (15)
- # clojure-nl (3)
- # clojure-uk (2)
- # clojurescript (38)
- # conjure (1)
- # datalevin (1)
- # datomic (16)
- # deps-new (4)
- # events (7)
- # figwheel-main (1)
- # fulcro (59)
- # graalvm (21)
- # integrant (3)
- # introduce-yourself (8)
- # jobs-discuss (2)
- # malli (23)
- # membrane (11)
- # membrane-term (2)
- # missionary (17)
- # off-topic (7)
- # pathom (23)
- # pedestal (6)
- # polylith (7)
- # portal (25)
- # releases (1)
- # remote-jobs (3)
- # reveal (5)
- # shadow-cljs (43)
- # spacemacs (7)
- # sql (18)
- # tools-deps (33)
- # vim (10)
- # xtdb (36)
I just upgraded to 1.10.891, one breaking change (of broken behaviour) was CLJS-3324. We had a function like
(defn f1 [a b & {:keys [c]}] [a b c])
Previously (f1 1 2 [])
would return [1 2 nil]
but now it throws with “No value supplied for key: []”
Not saying the change shouldn’t have been made, but it’s likely there will be existing code that relies on the old (broken) behaviour.Yes it has been reported already - but probably nothing much to do - it's a runtime fix for maps
Yeah I saw the change but didn't think of all the implications
@dnolen @danielcompton actually in clojure 1.11 this is valid behavior.
$ clj
Clojure 1.11.0-alpha2
user=> (defn f1 [a b & {:keys [c]}] [a b c])
#'user/f1
user=> (f1 1 2 [])
[1 2 nil]