From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.devel Subject: Re: add regexp-split: a summary and new proposal Date: Sun, 08 Jan 2012 00:05:03 +0100 Message-ID: <87ipknf71c.fsf@pobox.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1325977520 24906 80.91.229.12 (7 Jan 2012 23:05:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 7 Jan 2012 23:05:20 +0000 (UTC) Cc: guile-devel@gnu.org To: Daniel Hartwig Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun Jan 08 00:05:15 2012 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RjfK7-0007An-Ca for guile-devel@m.gmane.org; Sun, 08 Jan 2012 00:05:15 +0100 Original-Received: from localhost ([::1]:38084 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RjfK6-0007vy-D5 for guile-devel@m.gmane.org; Sat, 07 Jan 2012 18:05:14 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:43648) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RjfK2-0007vi-VR for guile-devel@gnu.org; Sat, 07 Jan 2012 18:05:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RjfK0-0005K6-Kt for guile-devel@gnu.org; Sat, 07 Jan 2012 18:05:10 -0500 Original-Received: from a-pb-sasl-sd.pobox.com ([74.115.168.62]:64142 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RjfK0-0005Jv-IF for guile-devel@gnu.org; Sat, 07 Jan 2012 18:05:08 -0500 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id BA6228282; Sat, 7 Jan 2012 18:05:07 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=37ifxobDcLhyA9wHuIo9ZOs7XEk=; b=xSuf8C SHbsCVDS/uZHpOXQnxNksGs4lmMPb6xA9QnyRyaWu6nmZFdCg3cR5/pQVRRtFl+6 MnUb/42jW1T96fiw8k7GBvs8sHeREuZsQeFlcazqiZ9hLD4Fc949t660E+lyZ6IY /gGlhuzjCiy0E4RDlJj9t2IUKVu6qYNGDuLsg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=yYnG+0hPZ4TozMnxav4Ya9sohc9KSGNd RqXsnZj/PADmIIm5R6FvP5JDLaGwqHQXImPvx3jaildof2AXD0aPBaUvH8oLBu3i ePEAF0qxQkbdxrf6Uj+ujAWxZCAmJFxcvs2jKnfID04iWVLV7QcBYFV5wz+nptKZ UX3X5yWgzF0= Original-Received: from a-pb-sasl-sd.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id AF80A8281; Sat, 7 Jan 2012 18:05:07 -0500 (EST) Original-Received: from badger (unknown [90.164.198.39]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTPSA id 1BDCA8280; Sat, 7 Jan 2012 18:05:06 -0500 (EST) In-Reply-To: (Daniel Hartwig's message of "Sat, 31 Dec 2011 13:54:31 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) X-Pobox-Relay-ID: 0A827666-3984-11E1-B278-65B1DE995924-02397024!a-pb-sasl-sd.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 74.115.168.62 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:13426 Archived-At: On Sat 31 Dec 2011 06:54, Daniel Hartwig 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/