On Aug 28, 7:40 pm, Rich Hickey <[EMAIL PROTECTED]> wrote:
> I'm pleased to announce that Stephen C. Gilardi's lib code has been
> integrated into the clojure namespace and is included in boot.clj, as
> of SVN rev 1009.
>
> This means that use, require, and load-resources are now available by
> default.
>
> There is also a new macro, ns, which should be the preferred way to
> use in-ns/import/use/require:
>
> clojure/ns
> ([name & references])
> Macro
> Sets *ns* to the namespace named by name (unevaluated), creating it
> if needed.
> If the ns didn't already exist, refers the clojure namespace.
> references can be zero or more of:
> (:requires ...) (:uses ...) (:imports ...) with the syntax of
> require/use/import respectively,
> except the arguments are unevaluated and need not be quoted. Use of
> ns is preferred to
> individual calls to in-ns/require/use/import:
>
> (ns foo
> (:requires [clojure.parallel :as par])
> (:uses clojure.inspector)
> (:imports (java.util Date Timer Random)
> (java.sql Connection Statement)))
>
It was mentioned by Chouser on the IRC that having the keyword args
differ from the functions via an English-specific transformation would
be confusing and error-prone, and I've agreed, so the syntax is now
(rev 1011):
(ns foo
(:require [clojure.parallel :as par])
(:use clojure.inspector)
(:import (java.util Date Timer Random)
(java.sql Connection Statement)))
Rich
--~--~---------~--~----~------------~-------~--~----~
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
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---