You are correct, no defmethod is ever removed by Closure (and can't be really).
You can use :modules to spread them into multiple files, whether or not that is useful depends on your project. Protocols are Closure-compatible and might be an alternate solution if you are worried about code size. On Saturday, January 21, 2017 at 8:25:06 AM UTC+1, Ikuru Kanuma wrote: > Say I have > > (defmulti foo :a) > > (defmethod foo :key1 [arg] (str "key1")) > (defmethod foo :key2 [arg] (str "key2")) > ... > (defmethod foo :key1000 [arg] (str "key1000")) > > Scattered across couple of namespaces in a project. > Since the dispatch relies on runtime data, I am imagining dead code > eliminating the unused ones are difficult, and if that is the case want to > know whether it is a good idea to include a large body of defmethods in a > single library, or it is better to serve them as a separate library. > > Sorry if this question has been already asked / the question is unclear. > > Thanks! > > Ikuru -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojurescript+unsubscr...@googlegroups.com. To post to this group, send email to clojurescript@googlegroups.com. Visit this group at https://groups.google.com/group/clojurescript.