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: Artur Malabarba
Subject: Re: [PATCH] Clojure-like syntactic sugar for an anonymous function literal
Date: Thu, 22 Jan 2015 16:30:43 -0200

>>     #(foo bar) should translate to (short-lambda (foo bar))
>
> Hmm...
>
> Not completely sure where I stand on this.
> A few notes:
> [...]
> - But the current Elisp implementation is not good at handling function
>   calls efficiently, so offering a very short syntax like #(foo bar) is
>   kind of lying to the programmer.

OTOH, 98% of elisp code doesn't care *that* much about efficiency. And
the programmers who need to write that 2% will look into it and learn
about the function call ineficiency.

As an example of the former, see how popular the (repeatedly
mentioned) dash library is. It's full of ineficient code (most
functions and macros are implemented in the simplest way, not the
fastest). Yet, it's very widely used among the repositories.



reply via email to

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