Re: clojure event handling

2009-11-15 Thread nchubrich
Thanks for posting these examples; I'd never thought of using multimethods that way. And thanks for the Swing example. I'm really interested in functional-reactive programming; hope we see lots of that stuff in Clojure. Anyone ever used FrTime in PLT? Here's the Swing events without the S

Re: clojure event handling

2009-11-12 Thread Kevin Downey
http://paste.lisp.org/display/87611#2 "infinite seq of swing events" On Thu, Nov 12, 2009 at 1:48 AM, Jeff Rose wrote: > On Nov 12, 1:22 am, nchubrich wrote: >> I'm curious what the best idiomatic way of handling events is (e.g. >> receiving a series of messages and dispatching functions on the

Re: clojure event handling

2009-11-12 Thread Jeff Rose
On Nov 12, 1:22 am, nchubrich wrote: > I'm curious what the best idiomatic way of handling events is (e.g. > receiving a series of messages and dispatching functions on the basis > of the messages).  One could use the 'experimental' add-watch(er) > functions.  But it might also be nice to do somet

Re: clojure event handling

2009-11-11 Thread Alex Osborne
nchubrich wrote: > I'm curious what the best idiomatic way of handling events is (e.g. > receiving a series of messages and dispatching functions on the basis > of the messages). One could use the 'experimental' add-watch(er) > functions. But it might also be nice to do something stream-oriented,

clojure event handling

2009-11-11 Thread nchubrich
I'm curious what the best idiomatic way of handling events is (e.g. receiving a series of messages and dispatching functions on the basis of the messages). One could use the 'experimental' add-watch(er) functions. But it might also be nice to do something stream-oriented, e.g. a doseq on a stream