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 ::a



Br,
Mamun





-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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? 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 ::a

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

.

Thanks, Daniel.
-- 
—
Daniel

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 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
> 
> .
>
> Thanks, Daniel.
> --
> —
> Daniel
>
> --
> Note that posts from new members are moderated - please be patient with
> your first post.
> ---
> You received this message because you are subscribed to the Google Groups
> "ClojureScript" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojurescript+unsubscr...@googlegroups.com.
> To post to this group, send email to clojurescr...@googlegroups.com.
> Visit this group at https://groups.google.com/group/clojurescript.
>

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 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 
> .
> 
> Thanks, Daniel.
> -- 
> —
> Daniel
> 
> -- 
> 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 unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en 
> 
> --- 
> You received this message because you are subscribed to the Google Groups 
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to clojure+unsubscr...@googlegroups.com 
> .
> For more options, visit https://groups.google.com/d/optout 
> .

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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* ([bindings & body] (if (seq bindings) `(when-let 
[~(first bindings) ~(second bindings)] (when-let* ~(drop 2 bindings) 
~@body)) `(do ~@body

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.