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: Richard Stallman
Subject: Re: Imports / inclusion of s.el into Emacs
Date: Sun, 03 May 2020 23:10:25 -0400

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > >> split-string aliased as string-split
  > >> downcase aliased as string-downcase
  > >> upcase aliased as string-upcase
  > >> format aliased as string-format
  > >> concat aliased as string-concat

  > >Don't do this.  Just learn these 5 names, or use apropos, as
  > > has been suggested.

  > Just curious, if these were to be introduced today, would you also name
  > them that way? What possible genericity is there about downcase/upcase?

I would certainly use the names 'format' and 'concat'.

For 'upcase', 'downcase' and 'capitalize', I might limit them
to strings (not characters) and give them names with 'string' in them.
But I am not sure.

I think that names of the form VERB-TYPE are natural when VERB is short
and refers to a transformation of the object itself.  For instance,
'split-string', 'trim-string'.

However, if we want to say something more complex about the action
than just a single verb, TYPE-ACTIONPHRASE is cleaner.

-- 
Dr Richard Stallman
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)





reply via email to

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