From: eregontp@... Date: 2017-05-13T11:47:37+00:00 Subject: [ruby-core:81139] [Ruby trunk Feature#10548] remove callcc (Callcc is now going obsoleted. Please use Fiber.) Issue #10548 has been updated by Eregon (Benoit Daloze). jphelps (Jeremy Phelps) wrote: > I just learned that Ruby has continuations. Then I learned that they're considered obsolete, and "instead" we're supposed to use a feature (basically just Python's yield statement) that has zero use cases in common with continuations. This is untrue. Ruby Fibers have little in common with Python generators. The most important feature is they have a stack. In other words, they are stackful coroutines, which can be used both as asymmetric coroutines (yield/resume) and symmetric coroutines (transfer). But yes, they cannot go back in the control flow, in opposition to coroutines. IMHO coroutines are extremely hard to understand and have drawbacks similar to GOTO. ---------------------------------------- Feature #10548: remove callcc (Callcc is now going obsoleted. Please use Fiber.) https://bugs.ruby-lang.org/issues/10548#change-64788 * Author: tarui (Masaya Tarui) * Status: Open * Priority: Normal * Assignee: * Target version: ---------------------------------------- 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: