On Friday, March 29, 2013 6:19:19 PM UTC-7, JvJ wrote:
>
> Is it possible to invoke a particular multimethod and bypass the dispatch 
> function?
>
> For instance, suppose that I have a multimethod with a dispatch value of 
> ::foo, and it's a really complex method.
>
> Now, I want all cases where the dispatch function returns nil to use the 
> same multimethod.  Is there a way I can intercept the nil and
> pass it directly on to the ::foo multimethod?
>

You could use the default multimethod to catch nil, and then call the multi 
with ::foo. 

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to