From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: David Pirotte Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH] Add string-replace-substring to (ice-9 string-fun) Date: Sun, 5 Jan 2020 20:40:56 -0300 Message-ID: <20200105204056.38b3b460@capac> References: <27656CBA-297B-4EE3-93D6-FD56BFBDDC44@sarc.name> <87imlqyw5x.fsf@pobox.com> <87k166ump3.fsf@gnu.org> <06A75D0F-6B33-4363-8226-0ABE539E9079@sarc.name> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/GWcmAUicNNxABBODbVGWlSZ"; protocol="application/pgp-signature"; micalg=pgp-sha512 Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="244018"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Andy Wingo , guile-devel To: lloda Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Jan 06 00:41:20 2020 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ioFWK-0011MR-0H for guile-devel@m.gmane.org; Mon, 06 Jan 2020 00:41:20 +0100 Original-Received: from localhost ([::1]:46364 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ioFWI-0007rm-6N for guile-devel@m.gmane.org; Sun, 05 Jan 2020 18:41:18 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55876) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ioFW9-0007rW-C0 for guile-devel@gnu.org; Sun, 05 Jan 2020 18:41:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ioFW7-0000Ho-Ml for guile-devel@gnu.org; Sun, 05 Jan 2020 18:41:08 -0500 Original-Received: from maximusconfessor.all2all.org ([79.99.200.102]:56754) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ioFW7-0000DT-H0; Sun, 05 Jan 2020 18:41:07 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by maximusconfessor.all2all.org (Postfix) with ESMTP id 966CF1BE00CC; Mon, 6 Jan 2020 00:41:04 +0100 (CET) Original-Received: from maximusconfessor.all2all.org ([127.0.0.1]) by localhost (maximusconfessor.all2all.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9hM2xz8datyu; Mon, 6 Jan 2020 00:41:04 +0100 (CET) Original-Received: from capac (unknown [179.210.19.106]) by maximusconfessor.all2all.org (Postfix) with ESMTPSA id 290FB1BE00CB; Mon, 6 Jan 2020 00:41:02 +0100 (CET) In-Reply-To: <06A75D0F-6B33-4363-8226-0ABE539E9079@sarc.name> X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 79.99.200.102 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.org gmane.lisp.guile.devel:20228 Archived-At: --Sig_/GWcmAUicNNxABBODbVGWlSZ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi, > > On 5 Jan 2020, at 13:12, Jan Nieuwenhuizen wrote: > >=20 > > Andy Wingo writes: > > =20 > >> On Fri 20 Dec 2019 18:32, lloda writes: > >> =20 > >>> This patch adds string-replace-substring that wingo posted to the > >>> mailing list to (ice-9 strings). This is a commonly used function > >>> and a good implementation isn't trivial, so I think it deserves > >>> inclusion. =20 > >>=20 > >> I didn't know that this module existed :) Sure, why not. Please > >> fix the commit message when you push. =20 > >=20 > > That's great! This is one of the things that has always amazed and > > annoyed me to be missing and I have written several half-baken > > implementations of it when I needed something like it. > >=20 > > Would it be too much to ask for some documentation to go with it, so > > that we will be able to find it? =20 >=20 > Sure, I'll include that in the fixed patch. Fwiw, guix has a (different) implementation as well, I don't know which is best, but I think it should be anmed string-replace-all http://git.savannah.gnu.org/cgit/guix.git/tree/guix/utils.scm David. --Sig_/GWcmAUicNNxABBODbVGWlSZ Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEhCJlRZtBM3furJHe83T9k6MFetcFAl4SdAkACgkQ83T9k6MF etfFUAgAzWiBiWyyET1yTwQfsjlROQZambdayyVrGu5ZVCUw7lSVHNAtoaNnzHBB bhfHXzTHXyMPtcfLx8e+d5N2QYWBUcv2TOv2OnjC/OBxkyd0TUf1eQRUekvgnZTU eUwHXvHToLp5bWEJeS+HGcu27E7BAxUYnOVMZe4ZI6P10FtkSQncasJdKpgVLZ2b KLrsu80VaKaXXZ3y1hC7A09O+xT+pvBqB5qEobS1tFUjFM8Hl29UhHQYGT0qY4LC YN3pLIhgTo1ne6xy2Y8Ce7d2kjmul+q4i8KYdhaI05e/AKNgu3mh/y+ZVVZi9O3E qOAtNl4jDm9kS6ZoBgHYI+jDH45tvQ== =QqtY -----END PGP SIGNATURE----- --Sig_/GWcmAUicNNxABBODbVGWlSZ--