clojure-spec

Jakub Holý (HolyJak) 2022-01-13T10:52:44.016500Z

Is there some place I can check for the status of spec2 and whether there is any tentative timeline? 🙏

❤️ 1
🍿 5
Alex Miller (Clojure team) 2022-01-13T12:57:13.017400Z

No tentative timeline

👍 1
❤️ 1
vlaaad 2022-01-13T14:28:51.021300Z

how about status?

Alex Miller (Clojure team) 2022-01-13T14:44:40.022900Z

not sure what you're looking for

Alex Miller (Clojure team) 2022-01-13T14:44:53.023100Z

it exists in development state

vlaaad 2022-01-13T15:05:35.024Z

Maybe Not was given in November 2018. It’s been 3 years since the announcement of spec 2. In no way I’m trying to rush Clojure development — I see a lot of stuff done during this time, particularly around tools deps, but I’m nonetheless curious if spec alpha 2 is delayed due to other areas having higher priority during these 3 years, or was there maybe some unexpected turn of events that resulted in spec design going into unforeseen direction? I remember reading something about function specs… Curious how it’s going there.

❤️ 1
➕ 2
Alex Miller (Clojure team) 2022-01-13T15:15:32.024200Z

still thinking about how to express the relationships we want to express at the function spec level. the provide/consumes stuff in Maybe Not is part of it, and mostly realized in schema/select, but there are other aspects too like (for example) wanting to be able to (easily) say that the elements in the output of filter are a subset of the elements in the input. and how to integrate that with the params in function definition in a clean way. I think we'll be spending more time on spec in '22.

❤️ 17
Ronny Li 2022-01-13T14:10:43.020300Z

Hi everyone, in https://m.youtube.com/watch?v=YR5WdGrpoug from 2018, Rich talks about defining a function that only requires a subset of a previously defined schema using s/select. Is this available now? I'm asking because I looked through the spec docs but didn't see anything. I might've just missed it though.

mpenet 2022-01-13T14:38:59.022800Z

Nope. There is a lib that attempted to bring that to spec1 but it's an experiment I think.

Alex Miller (Clojure team) 2022-01-13T14:46:21.023800Z

spec2 is a wip and has schema/select https://github.com/clojure/spec-alpha2 (docs: https://github.com/clojure/spec-alpha2/wiki/Schema-and-select - differs a bit from the talk)

👌 1
🙏 2