Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

What is the meaning of # in front of Clojure symbol?

When I declare a global Var like:

(def x 100)

I get the following output –

=> #'tutorial.core/x

I can understand that the 'tutorial.core/x is a symbol here, but what is the meaning of #?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

It is a reader macro. That is, it is shorthand for typing

(var tutorial.core/x)

or just

(var x)   ; in the same namespace

You can find more information here.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading