clj-commons / gloss

speaks in bytes, so you don't have to
Eclipse Public License 1.0
483 stars 57 forks source link

defcodec- does not create private Vars #51

Closed akahl-owl closed 7 years ago

akahl-owl commented 8 years ago

The Vars created with defcodec- are not private and remain accessible from outside the namespaces they are defined in.

user> (require '[gloss.core :refer :all])
nil
user> (defcodec- foo :byte)
#'user/foo
user> (meta #'foo)
{:line 78, :column 6, :file "*cider-repl localhost*", :name foo, :ns #namespace[user]}

I will create pull request to fix this issue.