1

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 #?

Alan Thompson
  • 28,048
  • 5
  • 40
  • 44
Deepak Tatyaji Ahire
  • 4,241
  • 2
  • 9
  • 27

1 Answers1

3

The "pound-quote" or #' 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.

Alan Thompson
  • 28,048
  • 5
  • 40
  • 44