From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: "Alfred M. Szmidt" Newsgroups: gmane.emacs.devel Subject: Re: discoveribility [Re: dash.el [was: Re: Imports / inclusion of s.el into Emacs]] Date: Sat, 09 May 2020 19:21:20 -0400 Message-ID: References: <0c88192c-3c33-46ed-95cb-b4c6928016e3@default> <87wo5mc04t.fsf@fastmail.fm> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="59103"; mail-complaints-to="usenet@ciao.gmane.io" Cc: joostkremers@fastmail.fm, rms@gnu.org, emacs-devel@gnu.org To: Philippe Vaucher Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun May 10 01:21:58 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 1jXYn8-000FGO-8N for ged-emacs-devel@m.gmane-mx.org; Sun, 10 May 2020 01:21:58 +0200 Original-Received: from localhost ([::1]:43780 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jXYn7-0002ZD-Aj for ged-emacs-devel@m.gmane-mx.org; Sat, 09 May 2020 19:21:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49438) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jXYmY-0001Ol-Q5 for emacs-devel@gnu.org; Sat, 09 May 2020 19:21:22 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:33983) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jXYmY-0006JT-7j; Sat, 09 May 2020 19:21:22 -0400 Original-Received: from ams by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1jXYmW-00087G-NW; Sat, 09 May 2020 19:21:20 -0400 In-Reply-To: (message from Philippe Vaucher on Sat, 9 May 2020 23:36:17 +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:249599 Archived-At: It looks like you missed the previous discussion about namespaces. I didn't. > Emacs's `capitalize` is usually absent from other languages, but when > it exists it's named titleize (Ruby). > > If you come from Ruby and assume that Emacs lisp is Ruby you will trip > -- but they are not the same languages, one cannot expect them to > behave the same. Well yes I kinda expected Emacs to give us high order programming in a consistent and organized manner. And how does it not already to that? If you look at the popularity of dash/s.el/f.el we are many wanting that. I don't know how to look at the popularity of s.el, dash.el which I have never heard of before this discussion. I've never heard of f.el until you just mentioned it here, and I cannot even guess what it does. s.el has nothing to do with higher order functions, so why put it into an already mixed bag of functions? > It also is misleading, since it will lower case all words follow the > first one, where in an actual title one would expect things like > subjects to be capitalize. E.g, the chapter title "Strings and > Characters" -- we do not want it to be "Strings and characters"! Well as I said already in every language "capitalize" means first character uppercase all the rest lowercase: You cannot assume that every language, be it spoken or programming, will use the same word for the same meaning. And three languages is quite short of "every language"; these type of exaggerations are not helpful... If you know what to look for yes, with dash I can just regexp search for "^-.*\?" and find the *exact list* of all the predicates that works on a list. You are simply using the wrong tool for the job, nor will this regexp work very well, since it will not list functions that are part of Emacs Lisp. If you wish to know what functions work on a list, one should look to the Emacs Lisp manual, specifically the Lists chapter (even more specifically, List-related Predicates). Eli also had a very good run down on how to use the different functions in Emacs to look up what is what.