Re: -function special?

2012-02-26 Thread Stuart Sierra
The leading dash is a convention in two places: - gen-class methods implemented by Clojure functions (e.g. -main) - low-level method implementations of built-in protocols in ClojureScript The dash has no special significance as far as the compiler is concerned, it's just part of the name.

-function special?

2012-02-25 Thread ClusterCat
Hi there, in some clojure examples I see function names with a leading dash like -main() -getFoo() (in backing bean) -setBar() (in backing bean) Are these functions with leading dash anything special? Or is this dash required for some interop? I didn't find any documentation about it. Thanks

Re: -function special?

2012-02-25 Thread Moritz Ulrich
It's the default prefix for methods in classes generated by gen-class: http://clojure.github.com/clojure/clojure.core-api.html#clojure.core/gen-class On Sat, Feb 25, 2012 at 15:17, ClusterCat cluster...@mail.com wrote: Hi there, in some clojure examples I see function names with a leading dash