From: ko1@... Date: 2016-07-19T06:53:12+00:00 Subject: [ruby-core:76419] [Ruby trunk Feature#12543] explicit tail call syntax: foo() then return Issue #12543 has been updated by Koichi Sasada. mame-san: Do you have use-cases? ---------------------------------------- Feature #12543: explicit tail call syntax: foo() then return https://bugs.ruby-lang.org/issues/12543#change-59660 * Author: Yusuke Endoh * Status: Open * Priority: Normal * Assignee: Yukihiro Matsumoto ---------------------------------------- How about introducing a new syntax for tail call? ``` def foo() foo() end foo() #=> stack level too deep ``` ``` def bar() bar() then return end bar() #=> infinite loop ``` * no new keyword (cf. `goto foo()`) * no conflict with any existing syntax * an experimental patch is available (attached) * no shift/reduce nor reduce/reduce conflict in parse.y -- Yusuke Endoh ---Files-------------------------------- then_return.patch (9.18 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: