From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Newsgroups: gmane.emacs.devel Subject: Re: (format "Hello %1$S%2$s" 'world "!") Date: Sun, 2 Jul 2017 12:32:41 -0400 Message-ID: References: <061782A1-0A51-49A1-9AA4-706AF8927D01@gmail.com> <94EF128F-6A3D-41DD-B92D-0C165A4A8EB9@gmail.com> <617557F2-0316-4504-BE80-E7F29E4EE347@gmail.com> <86E604C6-4A01-42D2-A3CD-D758FC5DD8B1@gmail.com> <6fc86e25-4515-0787-d984-9160bc9c15e7@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1499013189 20988 195.159.176.226 (2 Jul 2017 16:33:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 2 Jul 2017 16:33:09 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 Cc: Emacs developers To: Noam Postavsky Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 02 18:33:02 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 1dRhns-0004ou-Ch for ged-emacs-devel@m.gmane.org; Sun, 02 Jul 2017 18:32:56 +0200 Original-Received: from localhost ([::1]:58601 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dRhnx-0007uW-LZ for ged-emacs-devel@m.gmane.org; Sun, 02 Jul 2017 12:33:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53573) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dRhnj-0007t7-Ip for emacs-devel@gnu.org; Sun, 02 Jul 2017 12:32:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dRhng-0006uo-F5 for emacs-devel@gnu.org; Sun, 02 Jul 2017 12:32:47 -0400 Original-Received: from mail-qk0-x22e.google.com ([2607:f8b0:400d:c09::22e]:33877) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dRhng-0006ug-Aq for emacs-devel@gnu.org; Sun, 02 Jul 2017 12:32:44 -0400 Original-Received: by mail-qk0-x22e.google.com with SMTP id d78so130855615qkb.1 for ; Sun, 02 Jul 2017 09:32:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=3r0ho0f4I0jITPzAvZBEiuyElrHhUzwxpeiHNY1CTAE=; b=PTYIl1i1EmJeXSa2+csF7JhV6KKWgZwgZ82RC0mQwVYv/6hPSvsTiYmXLxOJH2fOX4 kula1YSnAdqZ8d6iqTI0Er7eR9soS1OHYvnyiJyVyU4itaJ2zhahSWiLec0tdWqYS8ZJ GIssyCF6KSQBQE80kNcpY8w23BHj8IRx/TLrabM86U2TnV2EnJXGpKIS5t0zHIEDm2iN WdFehBnllhalN2l5PfWmzZbqJp1NXUOw0xESdFxdL+OvRMoTz4g1nae17SmTwz5oUncL wk/zErq8q5bVvOoM6YnJkBLTtGmJqyP9505ZZtZnEFzzSMyWLzRsmcd/FLjU9tsiE5ps ON1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=3r0ho0f4I0jITPzAvZBEiuyElrHhUzwxpeiHNY1CTAE=; b=pDsRP8Hncwg0RFDT+6sJ+XE1dp+cL+uRH/Mg3cqEo6kEpJvaHfcD6Uzv36GhcsYvN4 tArJI0p5QoVN3+hgXl5lBYJodFUJuOCjUKRtswrIskYWAw+82KQEGbVFkbEjaWLGBynd zGT8Mo1jKQVOyxTLyXYnXFFOYhxJ2Vc/F+ngVSsvsd9I9ZTz2CcisYHoHtgPvFHMCNoV EddEuTe6505wxPBy4hFaBWrD2n3ZuXLjzjQaJu+V1SEKKMEQV1GmMeV51TcaG4axL9ID YzNCmBjiFmUoDts11CSLUAvHq6lUJw5UahSRZcdIVNAcjZoX6z6T4DTph8U/fmViI+kN hpYQ== X-Gm-Message-State: AIVw113hhZ+n2m/uvfVDiUGjpJQEKMsdMyUsVU7mXRmQngQQPIwABguV rX+53njBhjNq95KTJAU= X-Received: by 10.55.148.70 with SMTP id w67mr26489747qkd.160.1499013162750; Sun, 02 Jul 2017 09:32:42 -0700 (PDT) Original-Received: from [18.111.28.55] (dhcp-18-111-28-55.dyn.mit.edu. [18.111.28.55]) by smtp.gmail.com with ESMTPSA id z51sm11633520qtz.11.2017.07.02.09.32.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Jul 2017 09:32:42 -0700 (PDT) In-Reply-To: Content-Language: en-GB X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::22e 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:216112 Archived-At: On 2017-07-02 11:03, Noam Postavsky wrote: > I don't recall anyone suggesting that. Sorry, I should have, then :/ > Why would we need a new function since %n$ would be an error for the old format anyway? This in itself is a good reason to have a new function. A new function lets you migrate existing code, including plugins, to the new syntax, and load the polyfill in older Emacsen. A new syntax that causes errors in old Emacsen isn't usable by anyone outside of Emacs core, for fear of compatibility problems. Also, the syntax is very heavy. Was it inspired by another programming language? The ones I'm familiar with use $1, {1}, or similar syntax, but I've never seen %1$s :/