vlaaad / reveal

Read Eval Visualize Loop for Clojure
https://vlaaad.github.io/reveal/
MIT License
600 stars 21 forks source link

Better support for clojure.lang.PersistentQueue and other core Clojure data structures #24

Closed rbeesley closed 3 years ago

rbeesley commented 3 years ago

Consider the following:

  (pop
   (->
    (clojure.lang.PersistentQueue/EMPTY)
    (conj "Item 1")
    (conj "Item 2")))

The output in Reveal is: image

When shown as a table it is something which can be navigated, however this is the output for Cavla: image

The representation of the data is actually easier to digest in Calva than it is in Reveal without navigating into the object itself. I believe this could be addressed with extending, but it also seems that core Clojure structures should naturally come with a friendlier representation OOTB.

vlaaad commented 3 years ago

Hi! Thanks, I think it makes sense to show queue in a more list-like form, maybe #reveal/persistent-queue(...) or just (...).

vlaaad commented 3 years ago

Fixed in 1.3.194