From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: New jrpc.el JSONRPC library Date: Mon, 21 May 2018 10:42:08 -0400 Message-ID: References: <87lgcrqgvz.fsf@gmail.com> <831seipvdb.fsf@gnu.org> <871se9lyid.fsf_-_@gmail.com> <87d0xqs56o.fsf@gmail.com> <87d0xp5e5o.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1526913619 15193 195.159.176.226 (21 May 2018 14:40:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 21 May 2018 14:40:19 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Aaron Ecay , Philipp Stephani , Eli Zaretskii , vibhavp@gmail.com, emacs-devel@gnu.org To: =?windows-1252?B?Sm/jbyBU4XZvcmE=?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 21 16:40:14 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fKlyu-0003oq-PY for ged-emacs-devel@m.gmane.org; Mon, 21 May 2018 16:40:12 +0200 Original-Received: from localhost ([::1]:51008 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fKm11-00038k-SQ for ged-emacs-devel@m.gmane.org; Mon, 21 May 2018 10:42:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51141) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fKm0v-00038f-K2 for emacs-devel@gnu.org; Mon, 21 May 2018 10:42:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fKm0q-0004Xc-NB for emacs-devel@gnu.org; Mon, 21 May 2018 10:42:17 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:56956) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fKm0q-0004XO-Ir; Mon, 21 May 2018 10:42:12 -0400 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id w4LEgSVR011709; Mon, 21 May 2018 10:42:28 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id DE8FA6A32D; Mon, 21 May 2018 10:42:08 -0400 (EDT) In-Reply-To: (=?windows-1252?Q?=22Jo=E3o_T=E1vora=22's?= message of "Mon, 21 May 2018 14:43:13 +0100") X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 2 Rules triggered EDT_SA_DN_PASS=0, RV6290=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6290> : inlines <6645> : streams <1787387> : uri <2644936> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:225514 Archived-At: > Nice, i didn't know about that. Does it have an equivalent to > &allow-other-keys and &rest? It behaves as if &allow-other-keys is always given currently. As for &rest you can do (pcase-let* ((`(,first . ,(and rest (map foo bar))) '(0 (foo . 1) (bar . 2)))) (list first rest foo bar)) => (0 ((foo . 1) (bar . 2)) 1 2) At that point, the readability suffers, tho. -- Stefan