I think you should consider using Clojure's protocols feature rather that code-loading.
Frameworks take control away from a developer, seeing the developer's code as somewhat subservient to the framework. The more common approach in Clojure applications is to provide libraries, and expect your library to be just one of many libraries the developer may be adopting. That means leaving the developer in control, providing functions that the developer can call. If you want to provide 'callback' behaviour, protocols are ideal. On Thursday, 20 November 2014 11:22:52 UTC, Hussein B. wrote: > > Hi, > > Lets say that you are framework creator and to use your framework, you > defined a macro called defcontroller where the users of your framework add > their logic. > > You -as framework creator- how would you load user defined source code > files and collect their defcontroller definitions? > > Thanks for help. > -- 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/d/optout.