[racket-dev] Potential search improvement

From: Matthias Felleisen (matthias at ccs.neu.edu)
Date: Tue May 29 10:29:37 EDT 2012

On May 29, 2012, at 10:25 AM, Eli Barzilay wrote:

> 20 minutes ago, Eli Barzilay wrote:
>> An hour and a half ago, Sam Tobin-Hochstadt wrote:
>>> 
>>> To stop the sort in the middle, use a custom comparison function,
>>> a bit of state, and an exception.
>> 
>> This might work.
> 
> I was confused.  It does work, but it's not enough to be able to throw
> an exception -- I also need some form of a yield() call to check if it
> should be interrupted...  Is there something like that?
> 
> (The search code started as a simple thing that I CPSed so it can be
> killed when there's new user input -- if there's a way to do the above
> then that code can be simplified too.)

cps? Oh what a case study in expressiveness -) 

Posted on the dev mailing list.