[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: (format "Hello %1$S%2$s" 'world "!")
From: |
Clément Pit-Claudel |
Subject: |
Re: (format "Hello %1$S%2$s" 'world "!") |
Date: |
Sun, 2 Jul 2017 12:32:41 -0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 |
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 :/
- Re: prin1 / princ vs message ?, (continued)
- Re: prin1 / princ vs message ?, Tino Calancha, 2017/07/02
- Re: prin1 / princ vs message ?, Jean-Christophe Helary, 2017/07/02
- Re: prin1 / princ vs message ?, Jean-Christophe Helary, 2017/07/02
- Re: prin1 / princ vs message ?, Tino Calancha, 2017/07/02
- Re: prin1 / princ vs message ?, Jean-Christophe Helary, 2017/07/02
- Re: prin1 / princ vs message ?, Philipp Stephani, 2017/07/02
- Re: prin1 / princ vs message ?, Jean-Christophe Helary, 2017/07/02
- (format "Hello %1$S%2$s" 'world "!"), Clément Pit-Claudel, 2017/07/02
- Re: (format "Hello %1$S%2$s" 'world "!"), Jean-Christophe Helary, 2017/07/02
- Re: (format "Hello %1$S%2$s" 'world "!"), Noam Postavsky, 2017/07/02
- Re: (format "Hello %1$S%2$s" 'world "!"),
Clément Pit-Claudel <=
- Re: (format "Hello %1$S%2$s" 'world "!"), Noam Postavsky, 2017/07/02
- Re: (format "Hello %1$S%2$s" 'world "!"), Clément Pit-Claudel, 2017/07/02
- Re: (format "Hello %1$S%2$s" 'world "!"), Vivek Dasmohapatra, 2017/07/02
Re: prin1 / princ vs message ?, Stefan Monnier, 2017/07/02