Laurent PETIT <laurent.pe...@gmail.com> writes:

> 2010/12/29 Nicholas Wieland <nicholas.wiel...@gmail.com> wrote:
>
>     [...@slicingupeyeballs:~/kenji]$ lein repl

Hehe, nice hostname. :-)

>     REPL started; server listening on localhost:21669.
>     kenji.core=> (:require 'kenji.hello)
>
> Stop!
> Unles, *cough*, ":require" is a placeholder for "require" (just
> kidding), then you should invoke "require", not :require. You got
> caught because keywords are functions too, though invoking keywords on
> symbols just returns nil. 
>
> user=> (:foo 'bar)
> nil
>

Also if you want to use it like this:

>     kenji.core=> (hi "nick")

Then you'll want (use 'kenji.hello) rather than require.  Require is for
when you want to access via the namespace, like:

    kenji.core=> (kenji.hello/hi "nick")

-- 
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
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to