Yeah, Clojure provides all that I need for GUI programming. I was just wondering if there's an elegant way of doing GUI in a pure- functional way, without mutability.
On Oct 10, 7:58 pm, Chouser <[EMAIL PROTECTED]> wrote: > On Fri, Oct 10, 2008 at 8:14 PM, CuppoJava <[EMAIL PROTECTED]> wrote: > > > The Java "idiom" for eg. a button, is to create a button object which > > contains a list of "event listeners (closures/callback functions)" > > that get called when the button is clicked. > > So what is it you want the button to do? Mutability is no sin, and > Clojure gives you tools to manage it. > > For example the click listener could dispatch an action to an agent, > which would allow the GUI to continue promptly while the action works > in another thread. Would that be sufficient for what you want to > accomplish? > > --Chouser --~--~---------~--~----~------------~-------~--~----~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---