小编M. *_*out的帖子

What does the - (minus) symbol in front of function name within Clojure mean?

I can't get my head around the following. When defining the main function in Clojure (based on code generated by Leinigen), there's an - symbol in front of the function name main.

I went to the original documentation on clojure.com and found defn and defn- among other things, see https://clojuredocs.org/search?q=defn. I also searched on Google and found a source that said that the - in front of main indicated that the function was static (http://ben.vandgrift.com/2013/03/13/clojure-hello-world.html).

Does …

clojure

4
推荐指数
2
解决办法
141
查看次数

标签 统计

clojure ×1