unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Stefan Monnier'" <monnier@iro.umontreal.ca>
Cc: 'Lars Magne Ingebrigtsen' <larsi@gnus.org>, 5105@debbugs.gnu.org
Subject: bug#5105: 23.1; doc string of facemenu-set-face
Date: Mon, 18 Jul 2011 09:55:42 -0700	[thread overview]
Message-ID: <4D4C3BF277534D7ABBFD7434325A8A1D@us.oracle.com> (raw)
In-Reply-To: <jwv4o2j3brb.fsf-monnier+emacs@gnu.org>

> > What?  Why are you arbitrarily deciding that?  Why not assume that
> > allowing a string is a good thing, a purposeful design decision?
> 
> Because a good programmer knows that it's obviously not a good idea to
> encourage the caller to use a string here.

It might be obvious to what you call good programmers, but how about giving a
_reason_, for us mere mortals?

And what about all of the other places where we accept a string in place of the
object named by the string?  As I said:

>> We have many places in Emacs where we allow an arg to be
>> either a thing or its name.  Think of all of the BUFFER args
>> that can be a buffer or a buffer name.

What do the "good programmers" say about the design in those cases?  Is it
"obviously not a good idea" also?






  reply	other threads:[~2011-07-18 16:55 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-02 16:49 bug#5105: 23.1; doc string of facemenu-set-face Drew Adams
2011-07-13 14:42 ` Lars Magne Ingebrigtsen
2011-07-13 15:39   ` Drew Adams
2011-07-15 16:06     ` Lars Magne Ingebrigtsen
2011-07-15 16:13       ` Drew Adams
2011-07-18 14:27         ` Stefan Monnier
2011-07-18 16:55           ` Drew Adams [this message]
2011-08-01 21:27             ` Stefan Monnier
2011-08-01 21:47               ` Drew Adams
2011-08-01 22:21                 ` Lars Ingebrigtsen
2011-08-01 22:48                   ` Drew Adams
2011-08-02  0:31                   ` Stefan Monnier
2011-08-02  0:29                 ` Stefan Monnier
2011-08-02  1:36                   ` Drew Adams
2011-08-02 15:42                     ` Lars Magne Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D4C3BF277534D7ABBFD7434325A8A1D@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=5105@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).