[ruby-core:108278] [Ruby master Feature#10548] remove callcc (Callcc is now going obsoleted. Please use Fiber.)
From:
"mame (Yusuke Endoh)" <noreply@...>
Date:
2022-04-18 09:07:08 UTC
List:
ruby-core #108278
Issue #10548 has been updated by mame (Yusuke Endoh). Never use callcc in practical applications or libraries. It violates a common assumption of control flow that many programs have. It allows one method call to return twice or more, which may lead to a critical consequence including a segfault. Let's enjoy it as a joke feature only in toy programs. I want to keep callcc just because it is interesting. Use it seriously will shorten the life of callcc. ---------------------------------------- Feature #10548: remove callcc (Callcc is now going obsoleted. Please use Fiber.) https://bugs.ruby-lang.org/issues/10548#change-97300 * Author: tarui (Masaya Tarui) * Status: Open * Priority: Normal ---------------------------------------- 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>