Re: [clojure.spec] Best practices for programmatically generating specs?

2017-12-13 Thread Alex Miller
Another possible option is using spec specs (CLJ-2112) to unform from a spec data form to a spec (but that would still need to be evaluated) - still very much a wip. However, we are working on a spec update that will target some of this, so stay tuned for that. On Wednesday, December 13,

[clojure.spec] Best practices for programmatically generating specs?

2017-12-13 Thread Aaron Brooks
I've found in several projects that I want to have families of specs that have some shared structure but some differing structure. Consider a case where I have some, possibly nested, structure which in some cases will have some type of place-holder values which will later be replaced with

Re: functional implementation of core.async primitives

2017-12-13 Thread Timothy Baldridge
Great! So while this works, you'll still have a few problems, namely in places that are not in a tail call position. For example, core.async support this sort of behavior ;; inside an argument list (not a let) (go (println "GOT Value" ( wrote: > I just added `goloop` and `goconsume` to the

Re: Sets/Vectors vs Maps/Keywords default value when used as functions

2017-12-13 Thread Khalid Jebbari
Voted ! Thanks, I expected it to be a known problem. On Wednesday, December 13, 2017 at 3:15:18 PM UTC+1, Alex Miller wrote: > > There's a ticket for this at https://dev.clojure.org/jira/browse/CLJ-1305 > if you'd like to vote for it. > > On Wednesday, December 13, 2017 at 7:56:58 AM UTC-6,

Re: Sets/Vectors vs Maps/Keywords default value when used as functions

2017-12-13 Thread Alex Miller
There's a ticket for this at https://dev.clojure.org/jira/browse/CLJ-1305 if you'd like to vote for it. On Wednesday, December 13, 2017 at 7:56:58 AM UTC-6, Khalid Jebbari wrote: > > Any reason we can't provide default value for sets and vectors when using > them as functions, whereas it works

Sets/Vectors vs Maps/Keywords default value when used as functions

2017-12-13 Thread Khalid Jebbari
Any reason we can't provide default value for sets and vectors when using them as functions, whereas it works just fine for maps and keywords ? Examples : boot.user=> (["first" "second"] 2 :nope) clojure.lang.ArityException: Wrong number of args (2) passed to: PersistentVector boot.user=>

Re: Loading deps.edn Dynamically in Clojure 1.9

2017-12-13 Thread Brent Millare
If you are interested in this functionality, I would collaborate with you to develop a new project that uses pomegranate and the code in tools.deps to dynamically load deps.edn files without restarting the REPL. For now, if I want to add a new artifact, I just call pomegranate directly. Just