https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112011-02-15T16:22:17ZRuby Issue Tracking SystemRuby master - Feature #4335: String#split for empty string is always empty arrayhttps://redmine.ruby-lang.org/issues/4335?journal_id=158322011-02-15T16:22:17Znaruse (Yui NARUSE)naruse@airemix.jp
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Feedback</i></li></ul><p>=begin<br>
We don't think we should follow Python's result<br>
and your this proposal doesn't have enough reason to change current behavior even if it breaks compatibility.</p>
<p>I don't say there is no chance but it should be hard that you can show such strong reason.<br>
=end</p> Ruby master - Feature #4335: String#split for empty string is always empty arrayhttps://redmine.ruby-lang.org/issues/4335?journal_id=158512011-02-16T08:04:54Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul></ul><p>=begin<br>
'/'.split('/', -1) returns ["", ""].<br>
I don't think it's necessary to be default.<br>
=end</p> Ruby master - Feature #4335: String#split for empty string is always empty arrayhttps://redmine.ruby-lang.org/issues/4335?journal_id=249042012-03-18T19:04:25Znahi (Hiroshi Nakamura)nakahiro@gmail.com
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/24904/diff?detail_id=18239">diff</a>)</li><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Rejected</i></li></ul><p>It's intended feature, and -1 is prepared for your purpose as Nobu said. <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: String#split is inconsistent with empty string and negative limit (Closed)" href="https://redmine.ruby-lang.org/issues/3575">#3575</a></p> Ruby master - Feature #4335: String#split for empty string is always empty arrayhttps://redmine.ruby-lang.org/issues/4335?journal_id=853492020-05-02T08:13:42Zsawa (Tsuyoshi Sawada)
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/85349/diff?detail_id=56957">diff</a>)</li></ul>