Hello,

I'm a developping a Swing GUI in Clojure and follow the MVC patterns.
The view implements a protocol for displaying data, and another one to
register Swing listeners. Callbacks registered with the second
protocol only access the UI through the view protocol.

Each of this protocol has ~50 functions (and it's growing every
day...).

Even if I do some delegation when implementing these protocols, the
deftype implementation has already ~700 lines.

Is there a way to split the definition in several files or namespaces,
or more generally, what would be the best way to organize this
architecture?

I don't think subdivising the view in several views makes sense, since
from the point of view of the listeners it's really only one entity
(but maybe I'm wrong on this).

Thanks in advance for your suggestions.

-- 
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

Reply via email to