This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-11-09
Channels
- # aleph (3)
- # beginners (327)
- # calva (3)
- # cider (20)
- # cljdoc (59)
- # cljs-dev (40)
- # clojure (104)
- # clojure-dev (30)
- # clojure-italy (8)
- # clojure-nl (36)
- # clojure-russia (3)
- # clojure-spec (3)
- # clojure-uk (79)
- # clojurescript (54)
- # community-development (5)
- # cursive (28)
- # data-science (21)
- # datomic (35)
- # emacs (14)
- # expound (1)
- # figwheel (2)
- # figwheel-main (82)
- # fulcro (18)
- # graphql (13)
- # jobs (12)
- # jobs-discuss (38)
- # kaocha (8)
- # lambdaisland (1)
- # lumo (12)
- # off-topic (20)
- # onyx (4)
- # re-frame (51)
- # reagent (12)
- # reitit (8)
- # ring-swagger (1)
- # shadow-cljs (22)
- # slack-help (2)
- # spacemacs (6)
- # specter (16)
- # testing (3)
@alexmiller the spam is back https://dev.clojure.org/jira/secure/ViewProfile.jspa?name=vermaruby38
Thx, I removed their ability to post
Why you would want to move out of data?
You’ve already won :)
So that I can take a thing and then modify it, then return it back to the Java library that gave it to me.
That’s not a goal of datafy
there’s a contrib library for this already - https://github.com/clojure/java.data. This is not the goal of datafy
It would be tricky to know how to dispatch the value efficiently, I guess that's an over-generalisation of this kind of need
another one:
Wouldn't a second arity to datafy be handy? (defprotocol Datafiable (datafy [x] [x opts]))
, ex: for potential options to the transformation (keywordize?, codec, whatnot, etc)
You can pass custom functions, the ultimate option handler
That proposal seems quite harmless and could actually add some value (I think). I was playing with transforming some java instance that represent a (java class) Response from Elasticsearch (with a json body basically) and sometimes you might not want keywordization for instance. I have the feeling that's a need that could be quite common
I have another concrete example with "recordsets" instances that could take a number of options too
the default answer is that it can always be added in the future. My suspicion is that Datafiable is for a particular usecase that doesn't have knobs