> One option is (. target :slot), possibly with the not-so-great (.:slot  
> target) as well.

Why not simply (target :slot) and (:slot target) as one means of
accessing field values. Then you can still have clojure's traditional
(.x target) execute when x is a function object and return x's value
otherwise. If you want to get a member function object instead of
executing it, use (:method target).

These two syntaxes seem to stay consistent with traditional clojure
but also accommodate javascript's equivalence between objects and
maps.

Arthur

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