emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Imports / inclusion of s.el into Emacs


From: Stefan Monnier
Subject: Re: Imports / inclusion of s.el into Emacs
Date: Tue, 05 May 2020 13:23:31 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

>> You'll always
>> get a group of people that really expected it to be multibyte-string and
>> group of people that expect string-multibyte.
> If there is an actual naming standard, the people can learn.

There is a naming standard that every Elisp programmer must learn, it's
the use of a namespace prefix to group elements.  Sadly, this standard
is only taken half-seriously for non-core Elisp definitions.

Of course that standard doesn't say on what basis to group.

But currently, if you look at the "string-" and "multibyte-" prefixes,
it's immediately clear that "multibyte-" has not been really used as
a namespace prefix whereas "string-" has been used as a namespace prefix
for several function (for some function it's been used as a namespace
prefix but not all, e.g. `string-rectangle`).

Which is why I propose to rename `multibyte-string-p` to
`string-multibyte-p`, since it would feel at home inside the
"string" group.  Then Elisp programmers would benefit from the
naming convention for that function as well.


        Stefan




reply via email to

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