On Sun, Oct 21, 2012 at 04:20:09PM +0800, Daniel Hartwig wrote:
> Yes.  Keep it simple.  Operations like trim-whitespace and
> drop-empty-strings-from-the-result (mentioned in the previous
> discussion) are so easy to do outside of regexp-split, why complicate
> the semantics?

"So easy", but so verbose. We should prefer to make common use cases
easy (and succinct) to use, and not optimise for uncommon ones.

Anyway, in my response to Mark, I mentioned that if we can get
drop-right-while in-tree, we have a middle ground that should make
"everyone" happy. I am against requiring users of regexp-split to
reinvent that wheel each time. Leave the reinvention to Phil Bewig.[1]

Cheers,
Chris.

[1] http://lists.nongnu.org/archive/html/chicken-users/2009-05/msg00024.html
    "I never use SRFI-1. My personal standard library has take, drop,
     take-while, drop-while, range, iterate, filter, zip, [...]"

Reply via email to