Fork me on GitHub
#scittle
<
2022-12-11
>
jurjanpaul21:12:56

Do I understand correctly that sci/scittle does not support PeristentQueue because it relies on deftype? Interestingly, it does somewhat recognise #queue, bit then throws Error: Could not resolve symbol: cljs. I ended up (for today’s Aoc puzzle) borrowing some ClojureScript source code to implement the bare minimum of queue functions and learned. 🙂

borkdude21:12:03

@jurjanpaul502 It's supported in #C029PTWD3HR. The limitations of deftype only apply to interpreted source code, not to built-ins. I usually only add this stuff when people ask, or if I hit the issue myself, so feel free to make an issue and it will be added for the next release

jurjanpaul22:12:29

Ok, thanks! Good to know! I will make an issue (mostly because I noticed other clojurians really like to have it handy.)

borkdude22:12:56

@jurjanpaul502 Should be fixed with scittle 0.5.13

jurjanpaul07:12:20

Excellent! Thanks.

borkdude21:12:24

It's probably easy to port by looking at the nbb core.cljs