This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-02-14
Channels
- # aws (1)
- # bangalore-clj (1)
- # beginners (48)
- # boot (65)
- # braveandtrue (1)
- # cider (1)
- # clara (15)
- # cljs-dev (7)
- # clojure (179)
- # clojure-austin (1)
- # clojure-denmark (2)
- # clojure-greece (68)
- # clojure-italy (7)
- # clojure-russia (41)
- # clojure-serbia (9)
- # clojure-spec (44)
- # clojure-uk (27)
- # clojured (15)
- # clojureremote (20)
- # clojurescript (70)
- # community-development (2)
- # core-async (10)
- # cursive (14)
- # datomic (36)
- # defnpodcast (3)
- # emacs (13)
- # events (13)
- # hoplon (33)
- # immutant (18)
- # instaparse (2)
- # jobs (29)
- # jobs-discuss (71)
- # klipse (38)
- # lein-figwheel (4)
- # leiningen (1)
- # mount (34)
- # off-topic (36)
- # om (3)
- # onyx (51)
- # pedestal (5)
- # perun (8)
- # proton (2)
- # rdf (8)
- # re-frame (33)
- # reagent (24)
- # remote-jobs (1)
- # rum (6)
- # spacemacs (2)
- # specter (14)
- # sql (5)
- # testing (6)
- # untangled (1)
- # vim (10)
- # yada (3)
@mtnygard I find vase really interesting. It's super convenient to build fast backend API backend by datomic. I will try it out soon this week 😄
@mtnygard have you thought of conforming with different wire formats as JSON & Transit have different capabilities for presenting data.. Haven’t seen that (runtime conforming) part on the spec roadmap. Here’s something we are doing for it: https://gist.github.com/ikitommi/fb3e0200504dd8b635ed7edd0cdbc768#runtime-coercion.
I think conformance and coercion are two different concepts but they can be related by using s/conformer
. I think that strongly couples coercion to your spec definition, though. I could be mistaken.
Problem is that there is no coercion in spec. I’m using a special conformer, which doesn’t transform anything by default, only if you tell it to (do JSON or String -conversions). Another way would be to take a spec and transform it into a differently conforming spec, e.g. User
-> UserJSON
, UserString
. Currently not 100% proof due to the global spec registry. But something needs to be done IMO. I would be glad if I could toss away my current code for this.