From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: =?utf-8?B?7KGw7ISx67mI?= Newsgroups: gmane.emacs.devel Subject: Re: dash.el [was: Re: Imports / inclusion of s.el into Emacs] Date: Sat, 9 May 2020 13:26:28 +0900 Message-ID: References: Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="126360"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Joost Kremers , Emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat May 09 06:27:07 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 1jXH4s-000WlS-Ov for ged-emacs-devel@m.gmane-mx.org; Sat, 09 May 2020 06:27:06 +0200 Original-Received: from localhost ([::1]:36452 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jXH4r-0001PM-Az for ged-emacs-devel@m.gmane-mx.org; Sat, 09 May 2020 00:27:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33356) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jXH4N-0000yg-Vm for emacs-devel@gnu.org; Sat, 09 May 2020 00:26:36 -0400 Original-Received: from pv50p00im-zteg10021301.me.com ([17.58.6.46]:38988) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jXH4M-0003m8-N9 for emacs-devel@gnu.org; Sat, 09 May 2020 00:26:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; t=1588998392; bh=H96m2fUBcYK/C2Pj1TW7p7trvXhxVj3xvWYKdSXEegk=; h=Content-Type:From:Subject:Date:Message-Id:To; b=jUEoC63ggP/2uJQ5G9iGDCnrwNU4mnZtcw2/2wjNQSnbrQOeaic51PU5O27tyg6g6 wm2qA36QBM5FDLAXZ/5glOCFul+tD53bzjM8g07pvwJaq6BchK74hATI1Ji4cSlx1m ri2crpdbBiFU4MHyVMec2wIkHctg2W4fQ9IJXwbKjVqkQIHBmMHsdtkNU6vjHIZLx+ R0xhroFUYK1kya4W48pjNPajL/pGR6LhXZLvqVHDRPkKmTNWHM5ozFsHTHuQzH8tVu HUouWzuD22Vw7CPFEyVUW/Xap/pGudHzoL1POdrLXc5KeeJozYMdop1v8/4YprTq64 xE+es1RtVym+A== Original-Received: from [192.168.0.3] (unknown [1.230.108.64]) by pv50p00im-zteg10021301.me.com (Postfix) with ESMTPSA id 8CF7D58035B; Sat, 9 May 2020 04:26:31 +0000 (UTC) In-Reply-To: X-Mailer: iPhone Mail (17E262) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.216, 18.0.676 definitions=2020-05-09_01:2020-05-08, 2020-05-09 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 mlxscore=0 mlxlogscore=468 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2002250000 definitions=main-2005090040 Received-SPF: pass client-ip=17.58.6.46; envelope-from=pcr910303@icloud.com; helo=pv50p00im-zteg10021301.me.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/09 00:26:32 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, FROM_EXCESS_BASE64=0.979, KHOP_DYNAMIC=0.001, MIME_QP_LONG_LINE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action 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:249354 Archived-At: > 2020. 5. 9. =EC=98=A4=ED=9B=84 12:56, Richard Stallman =EC=9E= =91=EC=84=B1: >=20 > =EF=BB=BF[[[ 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. ]]] >=20 >> But you just described what dash does. ;-) It is just a collection=20 >> of list-handling functions such as they exist in modern functional=20 >> programming languages. If you're used to thinking in this paradigm=20 >> and then come (back) to Emacs Lisp, it feels like a hopelessly=20 >> clunky language. `dash.el` was written to remedy this. >=20 > That sounds like they could be useful facilities. Since they are real > features, not mere aliases and trivialities, they would not have the > main flaw of s.el. How is s.el =E2=80=98mere aliases and trivialities=E2=80=99 and dash.el isn=E2= =80=99t? Both provides convenience APIs for easier use... Below is a random long function in s.el...=20 (defun s-shared-end (s1 s2) "Returns the longest suffix S1 and S2 have in common." (declare (pure t) (side-effect-free t)) (let* ((l1 (length s1)) (l2 (length s2)) (search-length (min l1 l2)) (i 0)) (while (and (< i search-length) (=3D (aref s1 (- l1 i 1)) (aref s2 (- l2 i 1)))) (setq i (1+ i))) ;; If I is 0, then it means that there's no common suffix between ;; S1 and S2. ;; ;; However, since (substring s (- 0)) will return the whole ;; string, `s-shared-end' should simply return the empty string ;; when I is 0. (if (zerop i) "" (substring s1 (- i))))) And below is a random short function from dash.el... (defun -map (fn list) "Return a new list consisting of the result of applying FN to the items in= LIST." (mapcar fn list)) Just that some aliases exist for consistency doesn=E2=80=99t mean that the w= hole package is filled with aliases. > However, we should look carefully at the specific interfaces > of the entry points. Including something into Emacs is a time > for regularizing little details. >=20 > Also, I get the impression the names don't fit Emacs's conventions. >=20 > --=20 > 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) >=20 >=20 >=20