I see, heartly thanks, and there is no any words about it in API doc of clojure.org yet!
Regards limux. On 8月9日, 下午3时04分, j-g-faustus <johannes.fries...@gmail.com> wrote: > On Aug 9, 8:25 am, limux <liumengji...@gmail.com> wrote: > > > what's the meaning of > > #^Server in the defn and let? > > (defn #^Server run-jetty > ... > > (let [#^Server s (create-server (dissoc options :configurator))] > > It's a type hint. In the defn it specifies the type of the return > value, in the let it gives the type of the var. > #^... is the Clojure 1.1 syntax, in 1.2 it has changed to ^... > > Type hints are optional. > Seehttp://clojure.org/java_interop#Java%20Interop-Type%20Hints > > Regards > > jf -- 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