String#split for empty string is always empty array
Here is ruby's behavior:
' '.split('/') # => [" "] ''.split('/') # =>  '/'.split('/') # => 
Here is Python's behavior:
>>> ' '.split('/') [' '] >>> ''.split('/') [''] >>> '/'.split('/') ['', '']
Is there any chance to let
[''] instead of
Updated by naruse (Yui NARUSE) over 11 years ago
- Status changed from Open to Feedback
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.