Alexandre Conrad wrote:
What if str.split could take an empty separator?
Do you have a use case for this?
Right now you can join from an empty string... So why can't we split from an empty string?
Because splitting on an empty string is ambiguous, and nobody has so far put forward a compelling use case that would show how the ambiguity should best be resolved.