Re: What kind of dependency is org.clojure/core.specs in a Leiningen project?

2017-06-15 Thread 676c7473
Ah, indeed. This was helpful, thank you! -- 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 unsubsc

What kind of dependency is org.clojure/core.specs in a Leiningen project?

2017-06-15 Thread 676c7473
Hello, I have a question regarding the Clojure spec split. How would a diligent Clojure library author declare the core.specs dependency in a Leiningen project? The core specs need to be available during development, but they are not really a dependency if I never refer to them anywhere: so I don

Re: [ANN] Clojure 1.9.0-alpha4

2016-06-03 Thread 676c7473
This isn’t only an optimisation but also a change in behaviour, isn’t it? Clojure 1.9.0-alpha3: user=> (let [[x & xs] #{1 2 3}] x) UnsupportedOperationException nth not supported on this type: PersistentHashSet clojure.lang.RT.nthFrom (RT.java:948) Clojure 1.9.0-alpha4: user=> (let [[x & xs]

Re: Reflection warning: {} argument can’t be resolved as java.util.Map

2016-05-16 Thread 676c7473
I have opened http://dev.clojure.org/jira/browse/CLJ-1929. -- 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 firs

Re: Reflection warning: {} argument can’t be resolved as java.util.Map

2016-05-16 Thread 676c7473
Another observation: it seems that the type inference stumbles only when there is an overloaded method with the same arity (?): (import 'java.time.format.TextStyle) (let [builder (DateTimeFormatterBuilder.)] (.appendZoneText builder TextStyle/FULL #{})) This is a similar case in th

Reflection warning: {} argument can’t be resolved as java.util.Map

2016-05-16 Thread 676c7473
Hello, I am getting a reflection warning in Java interop and don’t understand why: (import 'java.time.format.DateTimeFormatterBuilder 'java.time.temporal.ChronoField) (set! *warn-on-reflection* true) (let [builder (DateTimeFormatterBuilder.)] (.appendText builder C

Re: Processing an array

2016-04-24 Thread 676c7473
Hello Olivier, perhaps 'reductions' would be a good fit here: (let [times (reductions + 0 (map :duration events))] (into [] (map #(assoc %1 :time %2) events times))) Best, -- David -- You received this message because you are subscribed to the Google Groups "Clojure" group. To pos

Re: [ANN] clojure.java.jdbc 0.5.8 + what's coming in 0.6.0

2016-04-13 Thread 676c7473
Would now be a good moment to bump the major version number to indicate clearly to all clients ‘your software may break if you make the jump’? Thank you, -- David -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to

Re: Add support for seq on Java streams?

2016-02-25 Thread 676c7473
Very interesting. This covers a grab bag of exactly the stuff that’s been bothering me. Thanks, Andrew. -- David Am Donnerstag, 25. Februar 2016 00:53:15 UTC+1 schrieb Andrew Oberstar: > > If you want to use reduce or transducers on a stream, you could take a > look at ike.cljj (shameless plug)

Re: Add support for seq on Java streams?

2016-02-24 Thread 676c7473
Thanks, Alex and Gary. I understand that Java 8 is not yet on the roadmap, so iterator-seq seems like the best solution. -- 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 fro

Add support for seq on Java streams?

2016-02-23 Thread 676c7473
Hello! For interoperation with Java, Clojure’s seq supports the Iterable interface directly, which means that all Java collections are automatically seqable. seq also supports the CharSequence and java.util.Map interfaces, and arrays too. Would it make sense to have seq also support java.util.str