RE: Russ olsen's Clojure Book

2018-01-16 Thread Sean Corfield
https://pragprog.com/book/roclojure/getting-clojure -- “This title will be available on or about 2018-08-10.” I’m a bit surprised it wasn’t available under their Beta program… Sean Corfield -- (970) FOR-SEAN -- (904) 302-SEAN An Architect's View -- http://corfield.org/ "If you're not annoying

Re: Officially support Vert.x

2018-01-16 Thread lawrence . krubner
James Gatannah, I apologize for hijacking this thread, but what did you mean here: > The one useful thing I could find that Vert.x provides out of the box > that clojure doesn't is the pub/sub messaging. That turned our > architecture into spaghetti, so I wouldn't call it a win. Was there

Re: Russ olsen's Clojure Book

2018-01-16 Thread lawrence . krubner
Stuart Sierra wrote a bit about Functional Design Patters here: https://www.infoq.com/presentations/Clojure-Design-Patterns Michael Bevilacqua-Linn wrote "Functional Programming Patterns in Scala and Clojure": https://www.amazon.com/Functional-Programming-Patterns-Scala-Clojure/dp/1937785475/

2nd Call for Participation: BOB 2018 (February 23, Berlin)

2018-01-16 Thread Michael Sperber
Note that BOB offers cross-registration discounts with :clojureD, which will be on the very next day - also in Berlin! == BOB 2018 Conference “What happens if we simply use what’s best?”

Re: Question: how to spec optional keyword arguments ?

2018-01-16 Thread Alex Miller
There is a known bug with conforming trailing ? parts inside a regex spec - sounds like you might be seeing that. https://dev.clojure.org/jira/browse/CLJ-2105 On Tuesday, January 16, 2018 at 8:07:19 AM UTC-6, Khalid Jebbari wrote: > > Thank you Alex. > > It happens that I forgot to name the

Re: Question: how to spec optional keyword arguments ?

2018-01-16 Thread Khalid Jebbari
Thank you Alex. It happens that I forgot to name the kwargs part in the s/cat call, so the working version should be : (s/fdef adder :args (s/cat :a integer? :b integer? :kwargs (s/keys* :opt-un [::c])) :ret string?) I'm asking because I've just discovered something about

Question: how to spec optional keyword arguments ?

2018-01-16 Thread Alex Miller
You don’t need the final s/? but otherwise that’s right! -- 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

Question: how to spec optional keyword arguments ?

2018-01-16 Thread Khalid Jebbari
Hello, Even after reading carefully the official spec guide and testing in the REPL, I'm not sure I'm `spec`'ing correctly a function that accepts optional keyword args. Here's how I do it in a dumb example : ``` (require '[clojure.spec.alpha :as s]) (defn adder [a b & {:keys [c] :or {c 1}}]

Re: :npm-deps and transitive dependencies

2018-01-16 Thread Thomas Heller
You can create a deps.cljs in the root of your classpath for Y and declare :npm-deps there ;; src/deps.cljs {:npm-deps {"the-thing" "version"}} This way the compiler can pick up your npm dependency and install it. On Monday, January 15, 2018 at 9:01:55 AM UTC+1, Lucas Wiener wrote: > > Hi, > >

Re: :npm-deps and transitive dependencies

2018-01-16 Thread Lucas Wiener
I now realise that this question might belong to the ClojureScript group, so I'm posting it there as well. Feel free to remove this thread if you want. Den måndag 15 januari 2018 kl. 09:01:55 UTC+1 skrev Lucas Wiener: > > Hi, > > I have the following clojurescript project dependency setup: X ->