From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jean-Christophe Helary Newsgroups: gmane.emacs.devel Subject: Re: concat with separators ? Date: Sun, 28 May 2017 14:33:44 +0900 Message-ID: References: <23AEA0E0-C320-4DAD-99AB-95A202FF07AC@gmail.com> <783c09c3-60df-e011-6db4-f8560c00cf92@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1495949678 1591 195.159.176.226 (28 May 2017 05:34:38 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 28 May 2017 05:34:38 +0000 (UTC) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 28 07:34:35 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dEqqY-0000FF-Rh for ged-emacs-devel@m.gmane.org; Sun, 28 May 2017 07:34:35 +0200 Original-Received: from localhost ([::1]:42820 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dEqqZ-0007uP-Hv for ged-emacs-devel@m.gmane.org; Sun, 28 May 2017 01:34:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39480) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dEqps-0007uI-4T for emacs-devel@gnu.org; Sun, 28 May 2017 01:33:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dEqpo-00080N-VU for emacs-devel@gnu.org; Sun, 28 May 2017 01:33:52 -0400 Original-Received: from mail-pg0-x235.google.com ([2607:f8b0:400e:c05::235]:34396) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dEqpo-0007ya-P2 for emacs-devel@gnu.org; Sun, 28 May 2017 01:33:48 -0400 Original-Received: by mail-pg0-x235.google.com with SMTP id u28so9908929pgn.1 for ; Sat, 27 May 2017 22:33:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:date:references :to:in-reply-to:message-id; bh=M6YiM1/eUzjpCsmyuWYpUdBgYdrkpiTr4oNAw/p3fi0=; b=OLQh1s9nlOoXUQzKJgYdVM0HXy7cuusC1i0aHVJWEwhGagUsK7rvs6G5PwTjNa2ONS M4bPipGxasfoD3xBG1SCPc+dUIcnzHUVngY9i2EfJZ6CA2zp26+BbwePzs6vGTXsSpjn S4Q7h5j3ErptAoLQJONWqR1ze+kP7Yz1M2g8MNCdjkPc4yoU4PmviBYzxdiX2gPgNWB7 kjxexvKPr+SZVXZWK1GeIG31iYcmunMv89TMgyNROde5JRdN+DTYZzep1b3cQ4kpMmIE Ta2crUtYJY3ZrC1SZnXzdpR+AWRHIwry2haCJsOXC5pfIQJVvsHSyElV+NE3xf8xdRO4 8sVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:date:references:to:in-reply-to:message-id; bh=M6YiM1/eUzjpCsmyuWYpUdBgYdrkpiTr4oNAw/p3fi0=; b=D7RlmRcTIQfGrk/xwCA9QZNVDhZyRPS8kXl6bL9WtIgQOKeLhc3OHcobK2S+Tg/FWZ JGxqgr+gKBLFzkEG2rTww3xDgNPmrbtJpXJvvj5/6upQR2QfLmJoGXMZ+eq1iZ31a0/U XIf7W3ViPf1dnw/l2oN+sZoaFbrRHa7x0pWw0QJlNxH2gPZlhswVHg2bQXYCIDXw93lK P8daPN9l4wcqVhPl8CbiWcJfi9OD9GXLjkZMtsI43TY0BK2Sul2RwP77fxaEVTvMhGT5 yPr6WkLovOSgrg6VoEjfgpBx+tSlo6K2fJKDviCHQcxPzYXmaExX6GnHGPnPGzcA0Xms ozEw== X-Gm-Message-State: AODbwcAmwAUjhPQVe67OZ0ag6S2e8BMhjeN53uEYRA/gPAjOSqIWv6W0 QLhliy/D6ElmwBY+30k= X-Received: by 10.84.213.8 with SMTP id f8mr27990398pli.22.1495949627526; Sat, 27 May 2017 22:33:47 -0700 (PDT) Original-Received: from [192.168.24.63] (pl25298.ag0304.nttpc.ne.jp. [133.232.153.210]) by smtp.gmail.com with ESMTPSA id z14sm8510825pfg.109.2017.05.27.22.33.46 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 27 May 2017 22:33:46 -0700 (PDT) In-Reply-To: <783c09c3-60df-e011-6db4-f8560c00cf92@gmail.com> X-Mailer: Apple Mail (2.3273) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::235 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:215274 Archived-At: > On May 24, 2017, at 23:34, Cl=C3=A9ment Pit-Claudel = wrote: >=20 >> I just realized today that concat did not come with optional = separators (unlike mapconcat). Is there a reason for that ? >>=20 >>> I just using mapconcat when I feel that need: >>>=20 >>> Example: >>>=20 >>> (mapconcat #'identity '("a" "b" "c") "|") =3D> "a|b|c" >>=20 >> That's roughly the definition of string-join in subr-x: >>=20 >> (defsubst string-join (strings &optional separator) >> "Join all STRINGS using SEPARATOR." >> (mapconcat 'identity strings separator)) Would it be acceptable to provide separators to concat or is it = preferable to use string-join instead? Jean-Christophe=20=