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
  • 29,276
  • 6
  • 41
  • 48
Deepak Tatyaji Ahire
  • 4,883
  • 2
  • 13
  • 35

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
  • 29,276
  • 6
  • 41
  • 48