From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Hartwig Newsgroups: gmane.lisp.guile.devel Subject: Re: regexp-split for Guile Date: Sun, 21 Oct 2012 16:20:09 +0800 Message-ID: References: <20120917140133.GA6315@yarrow> <87lig830ox.fsf@zigzag.favinet> <20120917200603.GB6315@yarrow> <20120918195915.GE6315@yarrow> <87y5jbfj60.fsf@tines.lan> <20121020040126.GA25831@yarrow> <87txtpjmsx.fsf@tines.lan> <87pq4djkj2.fsf@tines.lan> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1350807616 9167 80.91.229.3 (21 Oct 2012 08:20:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 21 Oct 2012 08:20:16 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun Oct 21 10:20:24 2012 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TPqli-0005zi-VF for guile-devel@m.gmane.org; Sun, 21 Oct 2012 10:20:23 +0200 Original-Received: from localhost ([::1]:47844 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TPqlb-0007Sp-Ar for guile-devel@m.gmane.org; Sun, 21 Oct 2012 04:20:15 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33844) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TPqlY-0007SY-Ft for guile-devel@gnu.org; Sun, 21 Oct 2012 04:20:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TPqlX-0001t6-EM for guile-devel@gnu.org; Sun, 21 Oct 2012 04:20:12 -0400 Original-Received: from mail-we0-f169.google.com ([74.125.82.169]:62256) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TPqlX-0001rh-7L for guile-devel@gnu.org; Sun, 21 Oct 2012 04:20:11 -0400 Original-Received: by mail-we0-f169.google.com with SMTP id u3so1105231wey.0 for ; Sun, 21 Oct 2012 01:20:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=DXzNFxBRHsPCeYbOKbaItwH7HVXw2R6mZB3ZYpx7Xu4=; b=REpipEmrRcuOI2t+6Tt771Phx7+7kd8hSX3mbfxNVIhccv6F4c0GwiNp2wGYzzgPJN /UsYKGn279V88yY7zfc7xT6hw7ZLVchUjkx9siS2x/VkWeJsW3LZuUkEgLSeuIu17ReH aF+Y79o6t5cVS4cSohVbDodTaEP7pYNn9cKPmLltZwH/jU5HRMnkt/MW3w8Wfiq6eqDZ 7WNe8Uqt0lpTKmelqvVK3WFrF2IYr7sasnOjDDAahNHDg6iEzbj3ITVz7GDPT1dTSrag C+A9mBm9l6Bj477QTPDognyctxQTOwBlljXMjGRCGgdi0mbfNORJ+gfILjdZSywcjDt7 7E3Q== Original-Received: by 10.216.193.136 with SMTP id k8mr3471076wen.188.1350807609586; Sun, 21 Oct 2012 01:20:09 -0700 (PDT) Original-Received: by 10.217.53.133 with HTTP; Sun, 21 Oct 2012 01:20:09 -0700 (PDT) In-Reply-To: <87pq4djkj2.fsf@tines.lan> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 74.125.82.169 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:15010 Archived-At: On 20 October 2012 22:16, Mark H Weaver wrote: > Honestly, this question makes me wonder if the proposed 'regexp-split' > is too complicated. If you want to trim whitespace, how about using > 'string-trim-right' or 'string-trim-both' before splitting? It seems > more likely to do what I would expect. 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? Limit is arguably more fundamental to the procedure. Anything else is pre- or post-processing.