[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Proposed new core library: alert.el
From: |
Ted Zlatanov |
Subject: |
Re: Proposed new core library: alert.el |
Date: |
Sat, 07 Nov 2015 08:44:34 -0500 |
User-agent: |
Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) |
On Sat, 7 Nov 2015 13:09:39 +0000 Artur Malabarba <address@hidden> wrote:
AM> We can still use a plist if we want, as long as it comes after all of
AM> the format arguments:
AM> (message "Hi %s, I'm %s." 'ted 'artur
AM> :severity :urgent)
AM> Because `message' (and `format') actually does allow you to specify
AM> more arguments than the number of % constructs, this is even backwards
AM> compatible!
>From experience, I think it's a bad programming practice to abuse a
function's interface (`message' mapped to `format' in this case) to
extend it.
OTOH Artur's approach makes it much easier to see what properties are
provided instead of hiding them inside the string.
So I'm not sure what's best. Sorry. Maybe there's a clever way we don't
see yet?
Ted
- Re: Proposed new core library: alert.el, (continued)
- Re: Proposed new core library: alert.el, Artur Malabarba, 2015/11/06
- message-function (was: Proposed new core library: alert.el), Ted Zlatanov, 2015/11/06
- Re: message-function (was: Proposed new core library: alert.el), Artur Malabarba, 2015/11/06
- Re: message-function (was: Proposed new core library: alert.el), Artur Malabarba, 2015/11/07
- Re: message-function, Ted Zlatanov, 2015/11/07
- Re: Proposed new core library: alert.el, John Wiegley, 2015/11/06
- Re: Proposed new core library: alert.el, Artur Malabarba, 2015/11/07
- Re: Proposed new core library: alert.el, Elias MÃ¥rtenson, 2015/11/07
- Message not available
- Re: Proposed new core library: alert.el, Ted Zlatanov, 2015/11/07
- Re: Proposed new core library: alert.el, Artur Malabarba, 2015/11/07
- Re: Proposed new core library: alert.el,
Ted Zlatanov <=
- Re: Proposed new core library: alert.el, Ted Zlatanov, 2015/11/08
- Re: Proposed new core library: alert.el, Artur Malabarba, 2015/11/08
- Re: Proposed new core library: alert.el, John Wiegley, 2015/11/09
- Posting new feature proposals on the wiki? (was: Re: Proposed new core library: alert.el), Nicolas Petton, 2015/11/10
- Re: Posting new feature proposals on the wiki?, John Wiegley, 2015/11/10
- Re: Posting new feature proposals on the wiki?, raman, 2015/11/11
- Re: Posting new feature proposals on the wiki?, John Wiegley, 2015/11/11
- Re: Posting new feature proposals on the wiki?, T.V Raman, 2015/11/11
- Re: Posting new feature proposals on the wiki?, Richard Stallman, 2015/11/11
- Re: Posting new feature proposals on the wiki?, T.V Raman, 2015/11/11