From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.devel Subject: dash.el [was: Re: Imports / inclusion of s.el into Emacs] Date: Fri, 08 May 2020 10:16:18 +0200 Message-ID: <87wo5mc04t.fsf@fastmail.fm> References: <0c88192c-3c33-46ed-95cb-b4c6928016e3@default> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="73325"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.4.4; emacs 26.3 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri May 08 10:17:02 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 1jWyBp-000Ivx-Jz for ged-emacs-devel@m.gmane-mx.org; Fri, 08 May 2020 10:17:01 +0200 Original-Received: from localhost ([::1]:57730 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jWyBo-00070o-Ma for ged-emacs-devel@m.gmane-mx.org; Fri, 08 May 2020 04:17:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44736) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jWyBH-0006Ml-7C for emacs-devel@gnu.org; Fri, 08 May 2020 04:16:27 -0400 Original-Received: from out5-smtp.messagingengine.com ([66.111.4.29]:39073) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jWyBE-0005eN-Kn for emacs-devel@gnu.org; Fri, 08 May 2020 04:16:26 -0400 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 1C9B25C0332 for ; Fri, 8 May 2020 04:16:22 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Fri, 08 May 2020 04:16:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= references:from:to:subject:in-reply-to:date:message-id :mime-version:content-type; s=fm3; bh=4ulXF9HA3y30lCP97Kcd2kdSDP KPPkgMRGR5koebhA8=; b=MMzjz2+d2OFBb/3vdDg4nXYgLyFywIW9sQ1sIluOZx PIBRwEguxwualxN8LMkNECZfEYSs7/eGx4jfgzZgIulgG6KOhfZjBOapbQ5IHApY pelAYYYRpCZ6sDfROR2MO3eYBoNcPkEmac+d1u50K8uyfTqLtk+gq0awQx4N7Y99 K6HdRqIR6gi+K4smQAAag1h2TuU8unO4amNaGXwnDpJgX5F4JmyReBZdFrXts69C DJcATmMxspAl/6Lacm5HH0i/5QvHF9NTr+iYXIKYqBGkd7sUV4pCHUO0mP26XuMx zDG3nS1x3aJBtT3xtFTn9AupH7/nziuurpSyGxcSY1Lg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=4ulXF9 HA3y30lCP97Kcd2kdSDPKPPkgMRGR5koebhA8=; b=X8o7haZWllkOEkDFtMZbJV Z9f41iIDmTDqBq4+AWwH+3sOxgN3q9+vEQ3FrymIbWvTe4hq5VCmXbYefun3ZMcu 4XtFYuuq0SS/Mb48vSbILbUS3vAx1op3btn/QMBE6R7L2C5Oa+YPZosPK9BSCei9 26c99j9Sy0F5eIGndAWqsA1adR+pET79qmoRcbV6KP+sbXJSjIxuBG7iRxh4q+tN 5s0K5WClnCOUyjeOe5w5fhT/utxCTsp8nwn3t3eqYB6i+7Xyc7d+esfP0R2BXcgu JdXywZcTsco+R1rjPiaQ5vL5bNlsD/tojnuEerCoaw8gjNKMLUytQbUrRTSdk4WA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrkedvgddtudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfhgfhffvufgjfffkgggtsehttdertd dtredtnecuhfhrohhmpeflohhoshhtucfmrhgvmhgvrhhsuceojhhoohhsthhkrhgvmhgv rhhssehfrghsthhmrghilhdrfhhmqeenucggtffrrghtthgvrhhnpefhudffuefhudelhf fgleeukeegudevtedtudduhfefteeugedvvedtuddugffffeenucfkphepleehrdeltddr vddtuddriedvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepjhhoohhsthhkrhgvmhgvrhhssehfrghsthhmrghilhdrfhhm X-ME-Proxy: Original-Received: from Swift.fastmail.com (ip5f5ac93e.dynamic.kabel-deutschland.de [95.90.201.62]) by mail.messagingengine.com (Postfix) with ESMTPA id 92017328005A for ; Fri, 8 May 2020 04:16:21 -0400 (EDT) In-reply-to: Received-SPF: pass client-ip=66.111.4.29; envelope-from=joostkremers@fastmail.fm; helo=out5-smtp.messagingengine.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/08 04:16:22 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, 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:249250 Archived-At: On Fri, May 08 2020, Alfred M. Szmidt wrote: > > My guess: he doesn't know dash.el > > Neither do I, I looked it up. > > The manual for dash.el doesn't explain what dash.el is about, it > advertises it self as a 'modern list library for Emacs'. > > From the looks it contains a big mix of various functions that > operate > on lists, anaphoric variants of Emacs lisp ones, some functions > borrowed from Haskell, some functions to work on tree, and a > thin > layer for various Emacs Lisp functions to follow the dash.el > libraries > internal naming converntion of prefixing everything with a dash, > and > the Scheme naming style for predicate. At the end, I still do > not > know what dash.el does, But you just described what dash does. ;-) It is just a collection of list-handling functions such as they exist in modern functional programming languages. If you're used to thinking in this paradigm and then come (back) to Emacs Lisp, it feels like a hopelessly clunky language. `dash.el` was written to remedy this. I assume the short prefix was chosen because list handling functions are part of the core language in Clojure (and I assume other functional programming languages) and using a dash was the best way to not conflict with existing names and still create the feeling that you're not actually using a library. (I assume "easier to type" won't have much to do with it, we have completion, after all.) The convention of using `?` for predicates is probably also borrowed more from Clojure than from Scheme (though Clojure obviously borrowed it from Scheme). > or what to use it for. Well, you use it if you want to program in a Clojure-like style. -- Joost Kremers Life has its moments