
14 Jul
2005
14 Jul
'05
4:26 p.m.
"Peter Dimov" <pdimov@mmltd.net> writes:
Pavol Droba wrote:
Hi,
This is an interesting observation. So it seems reasonable to drop back to 1.32 version.
The only reasonable thing is for split to return N+1 pieces for a string with N separators, if you ask me. :-) This is lossless in the sense that it allows you to reconstruct the original string. The non-reasonable behavior can easily be implemented on top of that, but not vice versa.
I realize it may not be obvious that I have a strong opinion in this, and since there still seems to be some debate about it going on: I agree with Peter. It's the _only_ reasonable thing. -- Dave Abrahams Boost Consulting www.boost-consulting.com