2012/10/16 David Nolen <dnolen.li...@gmail.com> > > I'm aware of this one as well. But again I think we can and should do a > quick fix in the compiler for this. Either the user used multimethods or > they did not. >
I don't see how such a quick fix could be done, without the compiler gaining a concept of "the whole program", in which the user could have used MMs. In my understanding, the compiler, as it is right now, is fundamentally form-at-a-time, so at the point the global-hierarchy var already gets emitted, you can't possibly know if it will be used. Certainly, you are much more familiar with the implementation, do you see a point where this could already be hacked in? > These kind of simple approaches may seem "hacky" but I think the benefit > to users in terms of code size today outweighs those concerns - the > discussed fixes would be quite simple to remove when a more general > optimization strategy is in place. > To be honest, the introduction of compile-unit is the simplest, most general solution I could come up with after some hammock time. Since it seems not to be an obiously bad idea, I'll stop here and get back to confluence with a fully thought out proposal + implementation. Feedback and alternate approaches still welcome. 2012/10/16 Andy Fingerhut <andy.finger...@gmail.com> > Herwig: > > I've added you to a couple of groups (clojure-dev and jira-developers) on > Confluence that you did not previously belong to. I'm not sure, but this > may give you permission to edit Confluence. Let me know if you still > cannot do so after receiving this message. > Thank you! Unfortunately that didn't seem to help. In the top bar I have 2 menus "Browse" and my account. The tools menu on each page doesn't let me edit either. kind regards -- 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