Design question - dependencies and function discovery

2013-11-18 Thread dm3
Hello, Looking for opinions :) I'm currently building an event-driven service which consumes events using handlers. Now, the idea is to define a set of handlers (functions of type Event-Unit) in different parts of the service, which are then invoked when an event comes into the system. The

Re: Design question - dependencies and function discovery

2013-11-18 Thread John D. Hume
Rather than having hidden mutable state for wiring events to handlers, would it be clearer if the main namespace just passed an :event-[handlers] map to the event processor? If that would create a huge, frequently changing data structure, each namespace with handlers could expose an