guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: add regexp-split: a summary and new proposal


From: Andy Wingo
Subject: Re: add regexp-split: a summary and new proposal
Date: Sun, 08 Jan 2012 00:05:03 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)

On Sat 31 Dec 2011 06:54, Daniel Hartwig <address@hidden> writes:

> An attempt to summarize the pertinent points of the thread [1].
>
> [1]
> http://lists.gnu.org/archive/html/guile-devel/2011-12/msg00241.html

Thanks for doing this!  I replied earlier without having read this
thread.  Sorry for being a serial processor :)

> * [Vanilla `string-split' expanded to support the CHAR_PRED
>   semantics of `string-index' et al.]

Makes sense to me.

> * New function `string-explode' similar to `string-split' but returns
>   the deliminators in it's result.

"delimiters" :)  Also, "Explode" has a meaning in the PHP world like our
"split", but oh well.  I would be OK with this.

> * Regex module replaces both of these with regexp-enhanced versions.

Sure.  I like Eli's suggestion of having the delimiters be the full set
of matching groups, as a list, but perhaps this could be controlled by a
keyword argument.

MHO at least :)

Andy
-- 
http://wingolog.org/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]