all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Nicolas Petton <petton.nicolas@gmail.com>
Cc: Emacs development discussions <emacs-devel@gnu.org>
Subject: Re: Including some functions from dash.el in Emacs?
Date: Wed, 29 Oct 2014 12:35:37 -0400	[thread overview]
Message-ID: <jwvwq7i7v23.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87mw8f6i8i.fsf@gmail.com> (Nicolas Petton's message of "Wed, 29 Oct 2014 15:52:29 +0100")

> I think that using cl-lib only to filter a list shows that something is
> missing from the language.  To me it is also weird to use prefixed
> functions for basic features like "cl-remove-if" and "cl-reduce".

The real problem indeed is one of naming and coherence.
It would be nice to group all list functions under the "list-" prefix,
for example.

The main benefit I see of the dash.el library is that it tries to
provide a coherent set of names (and functionality).

But it falls into the trap of having a "too attractive" very short
prefix, so it goes on and adds things unrelated to lists (e.g. the
threading macros, the when-lets, the function combinators).

> Please understand that I'm only willing to understand the reason behind
> this and why adding some of this functions wouldn't modernize and
> improve Elisp.

Just because something has existed for a long time doesn't mean it's
bad, so "modernizing" is pretty low on my priority list.

But yes, Elisp's "core" functions suffer from lots of irregularities,
and getting rid of them would be an improvement.  E.g.:
- Merging the various `get', `window-parameter', `process-get', ...
- Merge nth, aref, and elt.
- Group related functions under one prefix (e.g. for lists).


        Stefan



  reply	other threads:[~2014-10-29 16:35 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-29  7:25 Including some functions from dash.el in Emacs? Nicolas Petton
2014-10-29 12:50 ` Stefan Monnier
2014-10-29 13:04   ` Rasmus
2014-10-29 13:16   ` Nicolas Petton
2014-10-29 14:06     ` Stefan Monnier
2014-10-29 14:52       ` Nicolas Petton
2014-10-29 16:35         ` Stefan Monnier [this message]
2014-10-30  9:24           ` Nicolas Petton
2014-10-30 13:41             ` Stefan Monnier
2014-10-29 14:09   ` raman
2014-10-29 16:36     ` Stefan Monnier
2014-10-30 14:38       ` raman
2014-10-30 15:48         ` Compiling non-Elisp files in ELPA packages (was: Including some functions from dash.el in Emacs?) Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvwq7i7v23.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=petton.nicolas@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.