Actions
Feature #4335
closedString#split for empty string is always empty array
Feature #4335:
String#split for empty string is always empty array
Description
Actions
Added by phasis68 (Heesob Park) over 15 years ago. Updated over 6 years ago.
Description
=begin
We don't think we should follow Python's result
and your this proposal doesn't have enough reason to change current behavior even if it breaks compatibility.
I don't say there is no chance but it should be hard that you can show such strong reason.
=end
=begin
'/'.split('/', -1) returns ["", ""].
I don't think it's necessary to be default.
=end