Fork me on GitHub
#nbb
<
2023-04-22
>
Daniel Gerson09:04:45

Hello 👋 I think I found a regression, but feel free to tell me I've made some careless error 😅

(comment
  ;; "nbb" "1.0.142" works
  ;; "nbb" "1.2.173" regression
  (peek (into cljs.core/PersistentQueue.EMPTY [:a :b :c])) ;; nbb => :c
  (peek (into cljs.core/PersistentQueue.EMPTY [:a :b :c])) ;; shadow-cljs => :a
  )

borkdude09:04:27

$ npx nbb@latest
Welcome to nbb v1.2.173!
user=> (peek (into cljs.core/PersistentQueue.EMPTY [:a :b :c]))
:c

borkdude09:04:24

cljs.core/PersistentQueue.EMPTY is returning nil

borkdude09:04:48

Can you send an issue?

Daniel Gerson09:04:05

Yeah, no problem 👍

borkdude09:04:27

workaround:

(into #queue [] [:a :b :c])

👍 2
Daniel Gerson09:04:29

Thanks for the lightning response as per usual

Daniel Gerson09:04:49

I had a reader conditional in my code, so I wonder if #queue [] was an option at the time I wrote it? :thinking_face: 😄

borkdude10:04:36

probably not ;)

Daniel Gerson10:04:53

Just goes to show the speed at which nbb improves! 🚀