From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Artur Malabarba Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Clojure-like syntactic sugar for an anonymous function literal Date: Thu, 22 Jan 2015 16:30:43 -0200 Message-ID: References: Reply-To: bruce.connor.am@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1421951454 3755 80.91.229.3 (22 Jan 2015 18:30:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 Jan 2015 18:30:54 +0000 (UTC) Cc: Oleh , emacs-devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 22 19:30:54 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YEMWr-0007eb-4U for ged-emacs-devel@m.gmane.org; Thu, 22 Jan 2015 19:30:53 +0100 Original-Received: from localhost ([::1]:55384 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEMWq-0005NC-J5 for ged-emacs-devel@m.gmane.org; Thu, 22 Jan 2015 13:30:52 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53040) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEMWm-0005M8-KK for emacs-devel@gnu.org; Thu, 22 Jan 2015 13:30:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YEMWh-0003wa-W4 for emacs-devel@gnu.org; Thu, 22 Jan 2015 13:30:48 -0500 Original-Received: from mail-ob0-x22e.google.com ([2607:f8b0:4003:c01::22e]:44347) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEMWh-0003wW-Ra for emacs-devel@gnu.org; Thu, 22 Jan 2015 13:30:43 -0500 Original-Received: by mail-ob0-f174.google.com with SMTP id gq1so1988818obb.5 for ; Thu, 22 Jan 2015 10:30:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=A7ONn+YPFzuP7+YIU2GwsGrz/h9hVzufv9rMFzvG6/w=; b=jOwc4w0F/IhOTCvh+qGLp2FjNcBW8bfcpirre7DupW5pEXokQYl5df7F4VhyKInHj9 RP8ZJzHgJOLRB9L58K6bAR1ijpl2ki437uHMZs6jiib1qq4F2HswTkyYB3+43Dp4Ys62 bbvPU/GvCj25ULHgwJLPYBpqHP0buQMSAGkz2cc9pQANQiatLoMCS4sbpTW8K1DZw7Ae XmU/dDEvvoAcUVUdrej99zFbUW2xuVIVnK/7aTkiSe14EEpvBmMBUM6b8c8xs52x/S31 gNIGyKKvfdhLWdr31uPb9NDds02NaUtUhZga6Dt+ZMOo7YK2CR7iJwgLWb59Sd4MywIJ WS2w== X-Received: by 10.202.188.66 with SMTP id m63mr1755637oif.26.1421951443240; Thu, 22 Jan 2015 10:30:43 -0800 (PST) Original-Received: by 10.76.125.1 with HTTP; Thu, 22 Jan 2015 10:30:43 -0800 (PST) In-Reply-To: X-Google-Sender-Auth: bdymPMnh4hn0yyHXil1kbFSuHkM X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c01::22e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:181628 Archived-At: >> #(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.