all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ams@gnu.org (Alfred M. Szmidt)
To: Joost Kremers <joostkremers@fastmail.fm>
Cc: emacs-devel@gnu.org
Subject: Re: Namespaces - summary, conclusion
Date: Mon, 04 May 2020 10:18:32 -0400	[thread overview]
Message-ID: <E1jVbvU-0001pk-UB@fencepost.gnu.org> (raw)
In-Reply-To: <87pnbjomaz.fsf@fastmail.fm> (message from Joost Kremers on Mon,  04 May 2020 15:35:16 +0200)

   >    rename-file -> file-rename
   >    delete-file -> file-delete
   >    copy-file -> file-copy
   >
   > These functions are also interactive, where it is far more 
   > natural to
   > want to rename/delete/copy a file, than ... a file
   > renamed/deleted/copied.
   >  
   >    expand-file-name -> file-expand-name
   >
   > You're expanding a file name, so the name seems to fit the task.

   But wouldn't that be an excellent reason to have an alias?

I think it was mentioned before, but aliases are not without a cost.
They have to be maintained, and there is the cognitive load as well.
The line to draw where one stops adding aliases becomes fuzzy quickly.

Having multiple names for the same thing also reduces discoverability,
since now you have multiple things called similar but possible
different.  And Emacs already provides excellent means to discover
things, as pointed out by Eli several times.

If Emacs was started today from scratch, some of these naming changes
would maybe be a good idea (e.g., file-name-expand
vs. expand-file-name -- neither is a bad name for that particular
function) ... but expand-file-name is as old as Emacs, and as a
function name for what it does it is adequate.

Changing/Adding such a name (or any other name) has to be weighed
against that, and that is very heavy pot of gold.  And I think Eli, et
al want something more than just a list of here are functions that
should change or what ones current preference is... 

Change for changes sake isn't very useful.  Sometimes good enough is
just perfect.




  reply	other threads:[~2020-05-04 14:18 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-04  9:27 Namespaces - summary, conclusion Philippe Vaucher
2020-05-04 10:11 ` Philippe Vaucher
2020-05-04 11:38 ` Stefan Kangas
2020-05-04 12:42   ` Philippe Vaucher
2020-05-04 13:13     ` Alfred M. Szmidt
2020-05-04 13:24       ` Stefan Kangas
2020-05-04 13:35       ` Joost Kremers
2020-05-04 14:18         ` Alfred M. Szmidt [this message]
2020-05-04 15:35           ` tomas
2020-05-04 16:32             ` Philippe Vaucher
2020-05-04 14:59     ` 조성빈
2020-05-04 16:28       ` Philippe Vaucher
2020-05-05 10:22       ` 조성빈
2020-05-04 15:00     ` Eli Zaretskii
2020-05-04 16:36       ` Philippe Vaucher
2020-05-04 16:52         ` Alfred M. Szmidt
2020-05-04 16:52         ` Alfred M. Szmidt
2020-05-05 16:12           ` Alfred M. Szmidt
2020-05-04 17:08         ` Eli Zaretskii
2020-05-04 18:47         ` Stefan Monnier
2020-05-04 17:36     ` Stefan Monnier
2020-05-04 18:05       ` Philippe Vaucher
2020-05-04 18:25         ` Drew Adams
2020-05-04 14:43 ` Eli Zaretskii
2020-05-04 16:25   ` Philippe Vaucher
2020-05-04 23:40 ` chad

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

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

  git send-email \
    --in-reply-to=E1jVbvU-0001pk-UB@fencepost.gnu.org \
    --to=ams@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=joostkremers@fastmail.fm \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.