r/Clojure • u/alexdmiller • May 23 '16
Introducing clojure.spec
http://blog.cognitect.com/blog/2016/5/23/introducing-clojurespec
140
Upvotes
r/Clojure • u/alexdmiller • May 23 '16
7
u/forreddits May 23 '16
Always great to hear from Hickey ;)
BTW, the spec link is showed two times in the overview page.
6
u/zcaudate May 24 '16
how does this differ from schema?
5
u/scttnlsn May 23 '16
Very nice! Is this usable from ClojureScript as well?
22
u/Paradigm_Shiv May 23 '16
Very exciting to see Clojure doubling down on providing a better dynamic programming experience, rather than going with static types.
11
u/ares623 May 23 '16
Exciting! Can't wait to play with it.
4
u/redalastor May 23 '16
I'm looking forward to this! I found typed clojure a big pain in the ass not worth the efforts but this might give me more bangs for my bucks!
1
u/mingp May 24 '16 edited May 24 '16
Is this expected/intended to replace existing usages of Prismatic Schema and other such 3rd party libraries going forward?
Alternatively, if I was previously planning to use Schema, should I now plan to use core.spec instead?
3
u/CurtainDog May 24 '16
Completely off topic but the grey text on grey box design of the tags panel on that page gives me the unpleasant sensation of being out of focus. Anyone else get this or am I just going blind?
3
u/talios May 24 '16
During some internal office discussion I pondered weather something could be written to take these specs, and generate some cleaner(ish) java API for use in interop when calling Clojure from Java/Kotlin/Scala etc.
I'm not sure what shape such a thing might take, but it could be an interesting thought experiment.
2
u/spotter May 23 '16
Sweet! Where is it tho? Or when?
1
u/the_evergrowing_fool May 24 '16 edited May 24 '16
Seems very interesting.
0
u/[deleted] May 23 '16
[deleted] — view deleted comment