From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] map 988d721: Add a pcase pattern for maps and `map-let' based on it Date: Thu, 04 Jun 2015 18:39:49 -0400 Message-ID: References: <20150602201956.22733.21800@vcs.savannah.gnu.org> <87eglrmdmp.fsf@petton.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1433457645 24073 80.91.229.3 (4 Jun 2015 22:40:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Jun 2015 22:40:45 +0000 (UTC) Cc: emacs-devel@gnu.org To: Nicolas Petton Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 05 00:40:32 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 1Z0do1-0001Ok-Mb for ged-emacs-devel@m.gmane.org; Fri, 05 Jun 2015 00:40:09 +0200 Original-Received: from localhost ([::1]:44402 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0do1-0005d2-73 for ged-emacs-devel@m.gmane.org; Thu, 04 Jun 2015 18:40:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47490) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0dnn-0005cu-MX for emacs-devel@gnu.org; Thu, 04 Jun 2015 18:39:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z0dni-0004fU-Ip for emacs-devel@gnu.org; Thu, 04 Jun 2015 18:39:55 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:53660) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0dni-0004fQ-Fb for emacs-devel@gnu.org; Thu, 04 Jun 2015 18:39:50 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0ArEwA731xV/3K9xEVcgxCEAoVVuzcJh0sEAgKBPDkUAQEBAQEBAYEKQQWDXQEBBFYjEAs0EhQYDSSIP88jAQEBAQYBAQEBHos6hDZPB4QtBbM/gUUjgWYkHBWBWSKCeAEBAQ X-IPAS-Result: A0ArEwA731xV/3K9xEVcgxCEAoVVuzcJh0sEAgKBPDkUAQEBAQEBAYEKQQWDXQEBBFYjEAs0EhQYDSSIP88jAQEBAQYBAQEBHos6hDZPB4QtBbM/gUUjgWYkHBWBWSKCeAEBAQ X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="124464016" Original-Received: from 69-196-189-114.dsl.teksavvy.com (HELO ceviche.home) ([69.196.189.114]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 04 Jun 2015 18:39:49 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 7F299661A6; Thu, 4 Jun 2015 18:39:49 -0400 (EDT) In-Reply-To: <87eglrmdmp.fsf@petton.fr> (Nicolas Petton's message of "Thu, 04 Jun 2015 22:18:06 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:187026 Archived-At: >> - let KEY be evaluated rather than having it be quoted. I.e. require >> the programmer to write 'a when looking up the key `a'. It costs an >> extra quote in some/many cases, but does give you extra power. > Do you think it would be worth it? I'm not sure. Not sure either; it will clearly depend on actual uses. This said, if the main case where the quote would be needed is when KEY is a (non-keyword) symbol, then it's probably worth the extra flexibility since you could say that an element of the form SYMBOL is treated as equivalent to ('SYMBOL SYMBOL), so the extra quote will be very rarely needed. Stefan