Re: A strange syntax about clojure defn

2013-08-22 Thread ljcppunix
It's concise, and you know the history of clojure, thank you expert! 在 2013年8月22日星期四UTC+8下午5时01分55秒,Mikera写道: > > It's an old style type hint, indicating that the function returns a value > of class "Server" (the full Java class name is probably in an :import > declaration at the top of the fi

Re: A strange syntax about clojure defn

2013-08-22 Thread Mikera
It's an old style type hint, indicating that the function returns a value of class "Server" (the full Java class name is probably in an :import declaration at the top of the file) The new style of type hint is just "^Server". Both forms of type hint still work at present, but you should prefer

A strange syntax about clojure defn

2013-08-22 Thread ljcppunix
Hi, I read source code about run-jetty, as such, at 01 line: "(defn #^Server run-jetty", what's mean "#^Server", could you give a explanation? thank you! 01(defn #^Server run-jetty 02 "Serve the given handler according to the options. 03 Options: 04:configurator - A function called