This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-09-18
Channels
- # admin-announcements (13)
- # announcements (1)
- # aws (17)
- # beginners (1)
- # boot (113)
- # cider (71)
- # cljs-dev (7)
- # clojure (93)
- # clojure-android (2)
- # clojure-berlin (1)
- # clojure-dev (22)
- # clojure-italy (3)
- # clojure-japan (1)
- # clojure-poland (41)
- # clojure-russia (96)
- # clojurescript (140)
- # cursive (11)
- # datomic (27)
- # devcards (1)
- # devops (1)
- # events (4)
- # funcool (3)
- # hoplon (133)
- # immutant (7)
- # ldnclj (22)
- # leiningen (5)
- # off-topic (6)
- # om (22)
- # onyx (12)
- # re-frame (8)
- # reagent (12)
mattly: there's no way, afaik, to go back up the tree from a sub-cursor. ref-cursors were partly introduced to fix the problem you're describing...but I have been reassured by people that ref-cursors should be avoided and perhaps a different approach is what's actually required
I got pretty confused the other day, since I couldn’t marshall a nested data structure with Transit. If I printed it out in the repl, it looked sane enough, but Transit didn’t like it.
How should I deal with such a thing? It confuses me that I do not need to deref the nested map cursor in order to print it in the Repl, but I do need to do special handling in order to marshal it with Transit. How come?
@grav yeah that would be an issue. But fortunately not a very challenging one. Add a handler for MapCursor
and IndexedCursor
.
@dnolen: With that solution, the issue isn’t particularly challenging, you’re right there 😉
Anyway, it was more a question of my confusion about the different behaviour of writing something to the repl versus writing it to an http request.
ah, ok. would some kind of indication that they are cursors be a good feature? like you have with regular atoms? that would probably have cleared things up for me earlier