nbb

Daniel Gerson 2023-04-22T09:41:45.265399Z

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
  )

borkdude 2023-04-22T09:42:27.789649Z

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

borkdude 2023-04-22T09:42:39.390799Z

hmm

borkdude 2023-04-22T09:43:24.136879Z

cljs.core/PersistentQueue.EMPTY is returning nil

borkdude 2023-04-22T09:43:48.172739Z

Can you send an issue?

Daniel Gerson 2023-04-22T09:44:05.307939Z

Yeah, no problem 👍

borkdude 2023-04-22T09:44:27.749289Z

workaround:

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

👍 1
Daniel Gerson 2023-04-22T09:44:29.512859Z

Thanks for the lightning response as per usual

Daniel Gerson 2023-04-22T09:49:40.303609Z

https://github.com/babashka/nbb/issues/323

Daniel Gerson 2023-04-22T09:52:49.491969Z

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

borkdude 2023-04-22T10:07:36.285139Z

probably not ;)

Daniel Gerson 2023-04-22T10:09:53.954589Z

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