On Mon, Apr 9, 2012 at 2:29 PM, Aaron Cohen <[email protected]> wrote:
> I don't really like this feature, I wish the "not-found" version of invoke
> was only available by explicitly calling "get".
>
> It is however, documented, here: http://clojure.org/data_structures#Data
> Structures-Symbols

It would be nice if it threw an exception if the single argument was
not of an appropriate type... instanceof ILookup, instanceof Map and
instance of IPersistentSet seem to be the only valid types that can
return something useful?

I created http://dev.clojure.org/jira/browse/CLJ-969 for discussion.
If folks think it's worthwhile, I'll create a patch as well.
-- 
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/

"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to