On Saturday, December 22, 2012 3:34:52 PM UTC-5, Borkdude wrote:
> Clojure lets me define a var which name contains a dot,
> but I can't dereference it by name (because it is seen as
> a classname with a method or field). Clojure shouldn't let
> me let define it in the first place I think?

It all depends on that magical little word "should." Clojure
has generally not gone out of its way to prevent you from
doing things even if they don't make a lot of sense.

Symbols with dots in them are certainly valid (namespace
identifiers being a common example). One could argue that
this is an unhandled edge case in the Clojure reader. Maybe
the Clojure reader should not automatically assume that
symbols with dots in them are classes and instead try to
resolve them as Vars first.

-S

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