You can easily reimplement your solver passing block to `choose`.
Certainle, it will be less readable, but will work.
27 ѧ. 2016 . 2:36 PM ݧ٧ӧѧ֧ݧ <l.rieder / gmail.com> ߧѧڧѧ:

> Issue #10548 has been updated by Lukas Rieder.
>
>
> **Please keep callcc, they are inherently awesome to build constraint
> solvers.**
>
> I am using them in a real life application. I am calculating the available
> tables for a full calendar with many time slots and with respect to many
> configurable business rules for restaurants.
> Using callcc this feature got blazingly fast and very nicely readable.
> Also we use it to optimise table arrangements with respect to complex
> restaurant business rules (even something like: Guest A doesn't like to sit
> near Guest B).
>
> Please just have a look at these resources:
>
> * https://github.com/chikamichi/amb/tree/master/examples
> *
> http://web.archive.org/web/20151116124853/http://liufengyun.chaos-lab.com/prog/2013/10/23/continuation-in-ruby.html
>
> ----------------------------------------
> Feature #10548: remove callcc (Callcc is now going obsoleted.  Please use
> Fiber.)
> https://bugs.ruby-lang.org/issues/10548#change-58356
>
> * Author: Masaya Tarui
> * Status: Open
> * Priority: Normal
> * Assignee:
> ----------------------------------------
>
> We are paying a lot of costs for callcc's consistency.
> and currently, we can use Fiber in many situation.
>
> In
> https://bugs.ruby-lang.org/projects/ruby/wiki/DevelopersMeeting20140517Japan
> ,
> matz agreed to remove callcc.
>
> If there is no refutation, remove callcc in the future version.
>
>
>
> --
> https://bugs.ruby-lang.org/
>
> Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>
>
(supressed text/html)
Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>