How to find import-static in clojure 1.3

I am reading Clojure Programming, and this book is based on clojure 1.1.

I want to use the latest stable version 1.3, but it does not have the old clojure -contrib.

My problem is that I cannot find import-static in clojure 1.3. I could copy the macro definition from the old clojure -contrib and run.

Is there any import-static or some kind of substitute in clojure 1.3? Is there any knowledge to learn such libraries and functions in the old clojure -contrib for 1.3?

+4
source share
1 answer

Here you can find updated locations: http://dev.clojure.org/display/design/Where+Did+Clojure.Contrib+Go

As for import-static, it has not been moved. However, it will work on 1.3. without any changes, so you can just copy the code: http://github.com/richhickey/clojure-contrib/blob/master/src/main/clojure/clojure/contrib/import_static.clj

+4
source

All Articles