https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112016-11-25T14:04:02ZRuby Issue Tracking SystemRuby master - Feature #12813: Calling chunk_while, slice_after, slice_before, slice_when with no blockhttps://redmine.ruby-lang.org/issues/12813?journal_id=617292016-11-25T14:04:02Zshyouhei (Shyouhei Urabe)shyouhei@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Assigned</i></li></ul><p>We briefly looked at this issue in todays developer meeting but had no time to fully agree that the proposed extension is safe. We just did not reach a conclusion.</p> Ruby master - Feature #12813: Calling chunk_while, slice_after, slice_before, slice_when with no blockhttps://redmine.ruby-lang.org/issues/12813?journal_id=617332016-11-25T21:40:17Zmarcandre (Marc-Andre Lafortune)marcandre-ruby-core@marc-andre.ca
<ul></ul><p>It would help if you explained what is meant by "safe".</p>
<p>There is currently no valid usage of <code>chunk_while</code>, <code>slice_after</code>, <code>slice_before</code> or <code>slice_when</code> without a block and an argument, as they all raise an exception. So "extending" them by returning an enumerator instead can't reasonably produce a problem. So what else could be meant by "safe"?</p> Ruby master - Feature #12813: Calling chunk_while, slice_after, slice_before, slice_when with no blockhttps://redmine.ruby-lang.org/issues/12813?journal_id=618952016-12-06T12:58:49Zmatz (Yukihiro Matsumoto)matz@ruby.or.jp
<ul></ul><p>After consideration, I accept this proposal.</p>
<p>Matz.</p> Ruby master - Feature #12813: Calling chunk_while, slice_after, slice_before, slice_when with no blockhttps://redmine.ruby-lang.org/issues/12813?journal_id=1005482022-12-11T08:50:16Zsawa (Tsuyoshi Sawada)
<ul></ul><p>I think this has already been implemented by now. It should be closed.</p> Ruby master - Feature #12813: Calling chunk_while, slice_after, slice_before, slice_when with no blockhttps://redmine.ruby-lang.org/issues/12813?journal_id=1005552022-12-12T03:01:43Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Closed</i></li></ul>