emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Clojure-like syntactic sugar for an anonymous function liter


From: Oleh
Subject: Re: [PATCH] Clojure-like syntactic sugar for an anonymous function literal
Date: Thu, 22 Jan 2015 10:27:30 +0100

Hi David,

> Anonymous lambdas become considerably more useful once you have lexical
> scoping.  The latter has not been around long enough to have had a major
> impact on Elisp programming styles yet.
>
> That does not mean that I am convinced we want or need short-lambda.

The most popular library in MELPA, https://github.com/magnars/dash.el,
implements it (for a long time) like this:

    (--map (* it it) '(1 2 3))
    ;; => (1 4 9)

With my approach, it's:

    (mapcar #(* % %) '(1 2 3))
    ;; => (1 4 9)

I've grepped the useage of `--map' in all > 150 third party packages
that depend on `dash'.
I got 203 total results 60 different packages. This says a lot about
people wanting this feature for a long time.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]