[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Namespaces - summary, conclusion
From: |
Philippe Vaucher |
Subject: |
Re: Namespaces - summary, conclusion |
Date: |
Mon, 4 May 2020 18:36:46 +0200 |
> > rename-file -> file-rename
> > delete-file -> file-delete
> > copy-file -> file-copy
> > expand-file-name -> file-expand-name
>
> These are different: in Emacs we have functions that work on _files_,
> and we have functions that work on _file names_. The first 3 above
> are of the former kind, the last one is of the second kind (there are
> a lot more of that kind). We shouldn't mix them.
What is commonly done in other languages for functions operating on
paths only is to be prefixed with "path-".
rename-file -> file-rename
delete-file -> file-delete
copy-file -> file-copy
expand-file-name -> path-expand
That does not solve the interesting point about the first 3 being
interactive functions. Maybe interactive warrant english-looking
conventions ("verb-object")? This complicate matters.
- Re: Namespaces - summary, conclusion, (continued)
- Re: Namespaces - summary, conclusion, Philippe Vaucher, 2020/05/04
- Re: Namespaces - summary, conclusion, Stefan Kangas, 2020/05/04
- Re: Namespaces - summary, conclusion, Philippe Vaucher, 2020/05/04
- Re: Namespaces - summary, conclusion, Alfred M. Szmidt, 2020/05/04
- Re: Namespaces - summary, conclusion, Stefan Kangas, 2020/05/04
- Re: Namespaces - summary, conclusion, Joost Kremers, 2020/05/04
- Re: Namespaces - summary, conclusion, Alfred M. Szmidt, 2020/05/04
- Re: Namespaces - summary, conclusion, tomas, 2020/05/04
- Re: Namespaces - summary, conclusion, Philippe Vaucher, 2020/05/04
- Re: Namespaces - summary, conclusion, Eli Zaretskii, 2020/05/04
- Re: Namespaces - summary, conclusion,
Philippe Vaucher <=
- Re: Namespaces - summary, conclusion, Alfred M. Szmidt, 2020/05/04
- Re: Namespaces - summary, conclusion, Alfred M. Szmidt, 2020/05/04
- Re: Namespaces - summary, conclusion, Alfred M. Szmidt, 2020/05/05
- Re: Namespaces - summary, conclusion, Eli Zaretskii, 2020/05/04
- Re: Namespaces - summary, conclusion, Stefan Monnier, 2020/05/04
- Re: Namespaces - summary, conclusion, 조성빈, 2020/05/04
- Re: Namespaces - summary, conclusion, Philippe Vaucher, 2020/05/04
- Re: Namespaces - summary, conclusion, 조성빈, 2020/05/05
- Re: Namespaces - summary, conclusion, Stefan Monnier, 2020/05/04
- Re: Namespaces - summary, conclusion, Philippe Vaucher, 2020/05/04