From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Elias_M=C3=A5rtenson?= Newsgroups: gmane.emacs.devel Subject: Re: RFC: String interpolation Date: Wed, 14 Dec 2016 10:48:53 +0800 Message-ID: References: <51825111-ace4-f750-4077-026a3b648d27@gmail.com> <8737hwnc52.fsf@lifelogs.com> <8c117f5c-209a-97d8-79ce-a78f707f0545@gmail.com> <76c9c475-0180-aa49-3d4a-006d4e3f943c@gmail.com> <89a6a20d-e135-caad-6b31-760ab7ac90fc@cs.ucla.edu> <87fultkjte.fsf@lifelogs.com> <3ff9e7e4-aee7-191e-5e3b-4d4ac0006a1f@cs.ucla.edu> <9e138d20-782d-2a56-75f8-37e3fa1885df@cs.ucla.edu> <4e9c0a7e-2d44-5fc7-79d8-7b19758fef01@cs.ucla.edu> <2ca9c05d-2d3d-4fa5-9fc2-d502e659333b@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c05e5ccaa2b7c0543956033 X-Trace: blaine.gmane.org 1481684044 8669 195.159.176.226 (14 Dec 2016 02:54:04 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 14 Dec 2016 02:54:04 +0000 (UTC) Cc: John Wiegley , Lars Ingebrigtsen , Paul Eggert , rms@gnu.org, emacs-devel To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 14 03:54:00 2016 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 1cGzhe-0001MS-QB for ged-emacs-devel@m.gmane.org; Wed, 14 Dec 2016 03:53:58 +0100 Original-Received: from localhost ([::1]:45163 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cGzhj-0001Wq-0T for ged-emacs-devel@m.gmane.org; Tue, 13 Dec 2016 21:54:03 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55887) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cGzeB-0007Cd-O1 for emacs-devel@gnu.org; Tue, 13 Dec 2016 21:50:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cGzeA-0004Vu-VJ for emacs-devel@gnu.org; Tue, 13 Dec 2016 21:50:23 -0500 Original-Received: from mail-qk0-f181.google.com ([209.85.220.181]:34882) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cGze5-0004GJ-Qy; Tue, 13 Dec 2016 21:50:17 -0500 Original-Received: by mail-qk0-f181.google.com with SMTP id n204so6282359qke.2; Tue, 13 Dec 2016 18:49:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=TA8k2VmOfi25aUfEwWyLvrbGhbSHacHaEwOwCwpI5Eo=; b=Gxyo6FRIP+txK2ZKCUMevmqaaKnVmzr2we47rbuvKkJLI/L3ye8HZB8O0PNCgVaKHK G5EODaluO9SO1WI9hvid8cZdiEfrUcit5ZyoJ+EHMZdVioOa0CySk76JTj9LWVZaRDg8 320Frg0/HRvwXt7JIbZbv8eJKX33h0okngB4czylvjG5jLTLmE7AwPG5Ga4SRSmNeubE Lp/HqAMMn8inHGFrGTdliyCLtmGbW7wOb/jkeWUiJgk+xHzFyOr7c+8ZfhfWuLEsiF/7 hG0VlcFhDOerViZshOk4KNJMK66k8AS74fnTkkXEgyQEEZnI9Vs7z0wQoOdIu1nLyWir t/NQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=TA8k2VmOfi25aUfEwWyLvrbGhbSHacHaEwOwCwpI5Eo=; b=VtrgoTPI3VuT121cx7Q34TKKwDYXhSILf3qp3dsYANLzIlfiKJhP4JsbE3BQvKxnBc 27N7GsYUFzLFI6GCqandaZZwmcI56MsxDjdbdgEwbnITTOunrq/jytSjBQlAlGBfiHWy brcCSqvCfbaq3ezio9S7oHB1kTyh2yRa2Qczk/NQgttmtcgWD4hb2pSe6l0Ed99eUWjy w8r2YZ2O1UluyOibtXH9v6MgMHCTzIthN2f4TrphdqClC/zHSM0MRp5e9db3ez+h85EX CTNDTTbylos9lhsWGmldV83GAPBxnVr6s/ysFsCMAGv2cYyOfESPi68wrsIqyojZpeUg urmw== X-Gm-Message-State: AKaTC00gY0l/wDiDouCHGiSdWctpM5WDzeV1EDiCBvtnDaYtM0doLu66xg44yhh4n0b548dMdeJVxBNoTVaDFQ== X-Received: by 10.55.125.194 with SMTP id y185mr84474906qkc.38.1481683734503; Tue, 13 Dec 2016 18:48:54 -0800 (PST) Original-Received: by 10.55.110.5 with HTTP; Tue, 13 Dec 2016 18:48:53 -0800 (PST) In-Reply-To: <2ca9c05d-2d3d-4fa5-9fc2-d502e659333b@default> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.220.181 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:210433 Archived-At: --94eb2c05e5ccaa2b7c0543956033 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 14 December 2016 at 09:48, Drew Adams wrote: > > I see. Personally, I don't think we need to extend format at all. > > How many others really want this extension? > > Not I. Not in the ways discussed so far, at least. Current > `format' is better (for me). > > (On the other hand, if someone were to work toward a `cl-format', > even one that was partial and could be extended later, I'd likely > welcome that.) > There is one available on MELPA already, under the name =E2=80=98cl-format= =E2=80=99. Some basic testing seems to suggest that it works reasonably well: ELISP> *(cl-format nil "~{~s~^, ~}" '(1 2 3 4))* "1, 2, 3, 4" Regards, Elias --94eb2c05e5ccaa2b7c0543956033 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On 1= 4 December 2016 at 09:48, Drew Adams <drew.adams@oracle.com> wrote:
> I see. Personally, I don't think we need to extend fo= rmat at all.
> How many others really want this extension?

Not I.=C2=A0 Not in the ways discussed so far, at least.=C2=A0 Curre= nt
`format' is better (for me).

(On the other hand, if someone were to work toward a `cl-format',
even one that was partial and could be extended later, I'd likely
welcome that.)

There is one available o= n MELPA already, under the name =E2=80=98cl-format=E2=80=99.

=
Some basic testing seems to suggest that it works reasonably wel= l:

ELISP&= gt; (cl-format nil "~{~s~^, ~}" '(1 2 3 4))
"1, 2, 3, 4"

Regards,
Elias
--94eb2c05e5ccaa2b7c0543956033--