clojure-spec

About: http://clojure.org/about/spec Guide: http://clojure.org/guides/spec API: https://clojure.github.io/spec.alpha/clojure.spec.alpha-api.html
teodorlu 2021-03-06T16:50:59.005700Z

How is https://clojuredocs.org/clojure.spec.alpha/fdef not good enough?

borkdude 2021-03-06T16:53:36.006300Z

@teodorlu I think the spec2 function spec is related to some kind of notation that alludes to defn

1
borkdude 2021-03-06T16:54:21.007200Z

something like the plumatic/schema defn macro (but very different, because it's not schema)

👍 1
teodorlu 2021-03-06T16:55:33.008300Z

Ah, OK, so looking into "a single form that both defines a function and specifies its inputs" rather than a "normal defn and something additional"?

borkdude 2021-03-06T16:55:49.008500Z

We will only know when it comes out

👍 2
teodorlu 2021-03-06T16:56:03.008800Z

Thanks!

alexmiller 2021-03-06T17:06:47.009200Z

correct

alexmiller 2021-03-06T17:07:59.010100Z

it's not just "putting the current function spec in defn", but trying to reach quite a bit beyond that into some new ideas, and it's taking a long hammock to sort through all the tradeoffs there

👍 4
3
Aron 2021-03-09T11:30:14.013400Z

I wish I could be part of this hammock thing, not constantly just sometimes, I feel I could contribute, especially since I have at least 3 projects on hold for years now since I've been waiting spec2