26
votes

I'm learning clojure on Heroku using this tutorial. I've come across the same thing in other tutorials, as well.

Anyway, using the jetty adapter in ring, you have something like this:

(defroutes routes 
  ...)

(defn start []
  (ring/run-jetty #'routes {:port 8080 :join? false}))

I don't understand what #'routes means. If I replace it with just routes it seems to work fine. What does the #'symbol notation mean? It's been very difficult to research.

1

1 Answers