Re: if-let/when-let

2016-07-26 Thread Ertuğrul Çetin
Here is the if-let*: (defmacro if-let* ([bindings then] `(if-let* ~bindings ~then nil)) ([bindings then else] (if (seq bindings) `(if-let [~(first bindings) ~(second bindings)] (if-let* ~(drop 2 bindings) ~then ~else) ~(if-not (second bindings) else)) then))) And when-let*: (defmacro when-let* (

Re: ANN: The REPL, a weekly Clojure/Script newsletter

2016-07-26 Thread lvh
Hi! Thanks for putting this together — although FYI, the site just renders blank for me in Firefox. lvh > On Jul 26, 2016, at 4:20 PM, Daniel Compton > wrote: > > Hi folks > > I’ve started a weekly Clojure and ClojureScript newsletter called The REPL. > It covers what’s new (and old) in

Re: [ClojureScript] ANN: The REPL, a weekly Clojure/Script newsletter

2016-07-26 Thread Colin Fleming
Thanks for The REPL, I've been enjoying it very much. I like that it also has information related to Clojure but not Clojure-specific, such as JVM performance posts. Nice work! Cheers, Colin On 27 July 2016 at 09:20, Daniel Compton wrote: > Hi folks > > I’ve started a weekly Clojure and Clojure

ANN: The REPL, a weekly Clojure/Script newsletter

2016-07-26 Thread Daniel Compton
Hi folks I’ve started a weekly Clojure and ClojureScript newsletter called The REPL. It covers what’s new (and old) in Clojure, as well as related topics (Lisp, JVM, e.t.c.). You can sign up at http://therepl.net, and see a copy of the latest issue here

Re: How does clojure.core quote function work for keyword?

2016-07-26 Thread Steve Miner
It’s working as expected. The :: notation is expanded by the reader, before evaluation. As keywords are basically constants (like numbers or strings), you rarely see them quoted. > On Jul 26, 2016, at 8:52 AM, Mamun wrote: > > Hi > > How does clojure.core quote function work for keyword?

How does clojure.core quote function work for keyword?

2016-07-26 Thread Mamun
Hi How does clojure.core quote function work for keyword? If it is namespace keyword then it is displaying with namespace. Is it excepted result? (println (quote a)) => a (println (quote :a) ) => :a (println (quote ::a) ) => :user/a ;; I am expecting it should display :