2011/7/21 octopusgrabbus <octopusgrab...@gmail.com>:
> Thanks. You're right.
> (:require [clojure.contrib.string :as cstr]) ; str already defined

There should be no conflict between the var "str" (clojure.core/str)
and the namespace alias "str" (clojure.string). Names for vars and
namespaces never occur at the same place and cannot be mistaken for
each other (by the compiler for sure, but I don't know about humans).



Yout first attempt failed because of the quote. since 'x is equivalent
to (quote x), this

(ns test-csv
 (:require '[clojure.string :as str]))

becomes

(ns test-csv
  (:require (quote [clojure.string :as str])))

which is interpreted as the prefix syntax: (foo [b :as b] [c :as c])
is the same as [foo.b :as b] [foo.c :as c]. However, the stuff that
comes first in the vector ("b" and "c") must not have a dot in it,
hence the error message.



// raek

-- 
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