Fork me on GitHub
#clojure-spec
<
2016-08-20
>
kahunamoore05:08:34

I just posted a question to the Clojure ML - has anyone had any issues with danielz/system or stuartsierra/component when used with the latest alpha11?

kahunamoore05:08:24

I’m using lein (not boot) if that makes a difference… I started with a fresh closp template generated code which ran fine. Then I ran lein ancient upgrade on the project (using :allow-all) and now I’m getting errors related to (require vs (:require … afaik…

Alex Miller (Clojure team)05:08:58

I replied on list - there are bugs in system, I have filed PRs, and they have been merged. There are also upstream problems in monger, which system pulls in.

eraserhd14:08:24

Is there a way to enable fdef return checking?

eraserhd14:08:32

I thought there was, but can't find it.

gfredericks15:08:31

@eraserhd: w.r.t. instrumentation, no -- the advice is to use generative testing to test the impl of functions

eraserhd15:08:37

I'm kind of using clojure.spec for debugging, though I guess I could do that.

gfredericks15:08:27

@eraserhd probably not hard to write a helper aimed at your use case, and you could throw it into https://github.com/gfredericks/schpec if you want

eraserhd15:08:19

I have a weird tree data structure made out of vectors and numbers that has positional information in it. I did this mostly because I've written too much C. In Clojure, it's neither actually efficient, nor semantic. (You have to compute offsets for information.)

eraserhd15:08:59

I'm using clojure.spec to migrate it to maps.

eraserhd15:08:05

I was happy to discover I can actually specify the whole thing with spec. Though the conformed values aren't useful.

eraserhd15:08:22

(It was a terrible terrible idea.)

lvh19:08:12

@gfredericks: Is there anything I can do to help https://github.com/gfredericks/schpec/pull/10 land? My first thought was “contribute review time”, but the two other open PRs seem to be blocked on upstream responding to feedback.

gfredericks19:08:51

@lvh I have some minor concerns but I think they're all improvements that can be made later without breaking anything. Go ahead and merge it, I'll release later today

lvh19:08:05

cool, thanks!

gfredericks19:08:21

Sorry I had mistakenly thought everything was blocked on others

lvh19:08:28

no worries, I’ve maintained open sores projects, I get stuff falling through the cracks 🙂

gfredericks22:08:37

@lvh schpec 0.1.0 exists now

lvh22:08:18

@gfredericks: awesome, thanks; I'll ship more features your way