From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Imports / inclusion of s.el into Emacs Date: Sun, 03 May 2020 23:10:25 -0400 Message-ID: References: <87ftchy0go.fsf@gnus.org> Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="119539"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, joaotavora@gmail.com, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Philippe Vaucher Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon May 04 05:18:05 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jVRcK-000Uz9-Si for ged-emacs-devel@m.gmane-mx.org; Mon, 04 May 2020 05:18:04 +0200 Original-Received: from localhost ([::1]:57162 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jVRcJ-0004pK-Vr for ged-emacs-devel@m.gmane-mx.org; Sun, 03 May 2020 23:18:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36440) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jVRUz-0001y8-P1 for emacs-devel@gnu.org; Sun, 03 May 2020 23:10:29 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:44258) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jVRUz-0006QQ-B8; Sun, 03 May 2020 23:10:29 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1jVRUv-0008DL-96; Sun, 03 May 2020 23:10:25 -0400 In-Reply-To: (message from Philippe Vaucher on Sun, 3 May 2020 15:47:13 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:248784 Archived-At: [[[ 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)