Re: [racket-dev] request: replace-evt

2014-07-15 Thread Jan Dvořák
On Tue, 2014-07-15 at 15:46 +0100, Matthew Flatt wrote: > Added! Awesome! I officially owe you a beer. _ Racket Developers list: http://lists.racket-lang.org/dev

Re: [racket-dev] request: replace-evt

2014-07-15 Thread Matthew Flatt
Added! At Tue, 8 Jul 2014 05:36:55 +0100, Matthew Flatt wrote: > Hi Jan, > > That's a nice idea. Something similar --- but in a restricted form --- > is used internally to implement various primitive events. I think I see > how to generalize it to work with more arbitrary events and non-atomic >

Re: [racket-dev] request: replace-evt

2014-07-07 Thread Matthew Flatt
Hi Jan, That's a nice idea. Something similar --- but in a restricted form --- is used internally to implement various primitive events. I think I see how to generalize it to work with more arbitrary events and non-atomic replace functions. There could easily be a catch that I'm overlooking, but

[racket-dev] request: replace-evt

2014-07-07 Thread Jan Dvořák
Hi, I would like to humbly request a new `replace-evt` procedure that would work as `wrap-evt` except that when it produces another `evt?`, `sync` replaces the old event with the newly produced one and restarts. It will be a good replacement for threads and channels when filtering events or addit