Re: [ANN] spec.alpha 0.1.134

2017-10-07 Thread Mike
Hello! My project compiles and runs well with: [org.clojure/clojure "1.9.0-beta2"] and [org.clojure/spec.alpha "0.1.123"] but if I change [org.clojure/clojure "1.9.0-beta2"] and [org.clojure/spec.alpha "0.1.134"] it compiles well but when I'm run my app with java -jar I got exception below. It

Re: How to try/catch Let bindings?

2017-10-07 Thread Fabrizio Ferrai
Now that bertschi mentioned Haskell and side-effects, I noticed that the problem we have here totally looks like a monad: we have several steps of side-effecting computation, and each of them can fail, and when this happens you want to handle the failure while keeping the previous bindings. Now, w

Re: How to try/catch Let bindings?

2017-10-07 Thread Nathan Fisher
You could use exceptions, is that a hard requirement or are you working to transition your mental model for Java code to Clojure? If you can catch the exceptions or not throw them to begin with there’s some other options; Another way you could do it is using core.async and channels as some others

Re: [ANN] spec.alpha 0.1.134

2017-10-07 Thread Alex Miller
The key line here is: Caused by: java.lang.Exception: No namespace: clojure.future, compiling:(clojure/core/specs/alpha.clj:1:1), What this looks like to me is that you are doing AOT compilation and (due to the delayed macro loading of core.specs.alpha), you are compiling clojure.core.specs.al

Re: [ANN] Clojure 1.9.0-beta2

2017-10-07 Thread Sophia Gold
Thanks, Alex! I particularly appreciate the work on CLJ-700 as it's been a problem for me for some time. I see on Jira you mentioned it breaking several co

Re: [ANN] Clojure 1.9.0-beta2

2017-10-07 Thread Alex Miller
Any external data structure libs will need to be updated to implement ITransientAssociative2 for their transient impls to take advantage of the RT changes in 1.9.0-beta2 for CLJ-700. So external libs will not automatically work any differently until those changes are made. -- You received this

Re: [ANN] Clojure 1.9.0-beta2

2017-10-07 Thread Sophia
Gotcha. Are all relevant contrib libraries already planned to be updated when you release 1.9? I'm not sure if there's a policy on breaking changes in contrib libraries, or if this even counts as a breaking change. I use both data.avl and data.int-map enough I'd be willing to submit patches (at som

Clojure examples

2017-10-07 Thread John M. Switlik
I am newly registered, having just been reminded of Clojure by an article in the CACM. https://cacm.acm.org/magazines/2017/10/221326-a-large-scale-study-of-programming-languages-and-code-quality-in-github/fulltext Clojure, and its functional buddies, rated well. Too, I have been thinking

Re: [ANN] Clojure 1.9.0-beta2

2017-10-07 Thread Alex Miller
> On Oct 7, 2017, at 10:42 PM, Sophia wrote: > > Gotcha. Are all relevant contrib libraries already planned to be updated when > you release 1.9? I'm not sure if there's a policy on breaking changes in > contrib libraries, or if this even counts as a breaking change. I use both > data.avl an