From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Chris K. Jester-Young" Newsgroups: gmane.lisp.guile.devel Subject: Re: regexp-split for Guile Date: Sun, 21 Oct 2012 15:23:05 -0400 Message-ID: <20121021192305.GC25831@yarrow> 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=us-ascii X-Trace: ger.gmane.org 1350847394 15694 80.91.229.3 (21 Oct 2012 19:23:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 21 Oct 2012 19:23:14 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun Oct 21 21:23:22 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 1TQ17J-00034Z-0b for guile-devel@m.gmane.org; Sun, 21 Oct 2012 21:23:21 +0200 Original-Received: from localhost ([::1]:35668 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQ17B-00041X-Ju for guile-devel@m.gmane.org; Sun, 21 Oct 2012 15:23:13 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39998) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQ177-00041F-V5 for guile-devel@gnu.org; Sun, 21 Oct 2012 15:23:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TQ177-0007lT-0W for guile-devel@gnu.org; Sun, 21 Oct 2012 15:23:09 -0400 Original-Received: from mail-gg0-f169.google.com ([209.85.161.169]:36386) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQ176-0007lO-SW for guile-devel@gnu.org; Sun, 21 Oct 2012 15:23:08 -0400 Original-Received: by mail-gg0-f169.google.com with SMTP id i1so374218ggm.0 for ; Sun, 21 Oct 2012 12:23:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=3dzAQ3B9Pbtt+k4GvV3Aua6ITNnH2rREHCfGmSLrdRQ=; b=UyHslEGj4mwDicSr/hzoO+UPqkkY60lwDv1uZH2OHf4hxCWPTkqZi0xlv3g0iwGI5M j3GFXOSlx733N7cE+n/kRBzKZLySsaz4XS7bQnd/0K+LVDVIJ2CljbjTCawyeICWfpL0 lU3qqwAZ0XG+j+2I3k52gxoLNkQtTy2ce7irMrmKOvliX25qLnAjFLgnjZjnFLyPJbZd VmAmgSY2V9vw/SXzvaDLeGBWbgDe8ezOY5v0W2Libi6n0hcIZeVljoSmG1u7WdQ/rKqB fCWfhv39ul8z3nF2dn6JDEcb/Ojw45n6x2vCnweVU+1XUMM5+GgNS2+MR+PANRyjOGJs qt/w== Original-Received: by 10.236.131.239 with SMTP id m75mr6642546yhi.2.1350847388378; Sun, 21 Oct 2012 12:23:08 -0700 (PDT) Original-Received: from yarrow (cpe-107-015-110-238.nc.res.rr.com. [107.15.110.238]) by mx.google.com with ESMTPS id l35sm7084803yhi.12.2012.10.21.12.23.07 (version=SSLv3 cipher=OTHER); Sun, 21 Oct 2012 12:23:07 -0700 (PDT) Mail-Followup-To: guile-devel@gnu.org Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.161.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:15012 Archived-At: 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, [...]"