[Top][All Lists]

[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?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]