It's true, responding to clicks should not necessarily require mutation, but probably anything beyond that GUI-wise would require it. So I guess it's a minor quibble that one or two of the basic aspects are not as elegant as they could be (thanks to Java). But I'll file this under "worse is better" and move on making use of all the really awesome things about Cljojure.
On Feb 16, 11:45 am, David Nolen <dnolen.li...@gmail.com> wrote: > On Mon, Feb 16, 2009 at 10:27 AM, rob levy <r.p.l...@gmail.com> wrote: > > So if I am right about these two facts, it seems like Clojure should > > include a native way of making applets/applications that both enables the > > truly functional style that Clojure is built on, and doesn't require writing > > Java to call it (it seems like Clojure should replace Java, not perpetuate > > it, other than to build on its vast libraries, IMHO). What do you think > > (and is there something I'm understanding wrong here)? > > Someone correct me if I'm way off, but User Interfaces are by definition > very mutation heavy. It has come up before that Clojure's emphasis on > immutability is a tool not a religious decree. Mutation is fine, just don't > mindlessly sprinkle it all over your program. Even a language like Haskell > (which I know very little about) needs special constructs for IO. But this > is exactly what your example illustrates! mouse -> I, screen -> O. > Mutability sneaks in ;) > > Of course it would be interesting to see a UI framework that is more > functional, but having done a considerable amount of UI programming this > seems to me like mostly a waste of time. > > Instead of dictating, Clojure simply encourages you to reflect on whether > you really need mutation. If you absolutely need mutation, Clojure isn't > going to stop you. And that's a great thing. > > David --~--~---------~--~----~------------~-------~--~----~ 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 clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---