Re: How to properly spec this simple structure

2017-10-05 Thread Alex Bezhan
Yeah, thanks for noticing, Peter. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe fr

Re: How to properly spec this simple structure

2017-10-05 Thread Alex Bezhan
https://stackoverflow.com/questions/46592767/how-do-i-make-custom-clojure-spec-generator/46594611#46594611 -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members a

Re: How to properly spec this simple structure

2017-10-05 Thread Alex Bezhan
Here is my question on SO. I got the answer. The issue was that I had some garbage code for REPL, that was not commented out and it was producing the error. Sorry for that, I'm just new to Clojure and trying to learn this stuff. -- You received this message because you are subscribed to the Goo

Re: How to properly spec this simple structure

2017-10-05 Thread Alex Bezhan
Can someone explain what I've done wrong and how to do it the right way? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient w

Re: How to properly spec this simple structure

2017-10-05 Thread Alex Bezhan
As to how I wrote the channel-gen generator. It's basically what I could write using some examples and I'm pretty sure it's almost incorrect in the sense that it works inefficiently. I'm new to Clojure, so trying to spec things is super hard for me. -- You received this message because you are

Re: How to properly spec this simple structure

2017-10-05 Thread Alex Bezhan
Yep, it was my mistake to put channel-type in a parenthesis. I removed that but it still fails with the same error. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new

How to properly spec this simple structure

2017-10-05 Thread Alex Bezhan
down votefavorite I'm trying to spec the following data structure called Connection: {:id "some string" :channel "instance of org.httpkit.server.AsyncChannel" } Here is my spec: (defn make-channel [