From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nicolas Petton Newsgroups: gmane.emacs.devel Subject: Re: Semantic of pcase `seq' and `map' patterns Date: Sat, 17 Oct 2015 15:31:20 +0200 Message-ID: <87r3ktoc47.fsf@petton.fr> References: <87wpyaet7r.fsf@web.de> <87y4iqh7x0.fsf@web.de> <87oajmld49.fsf@gnu.org> <87oajlyif9.fsf@gnu.org> <87a8v53wll.fsf@web.de> <87k2qsxr73.fsf_-_@web.de> <87bnc4mh2q.fsf@petton.fr> <874mhwxne8.fsf_-_@web.de> <87si5gw6f3.fsf@web.de> <87twpwkx8e.fsf@petton.fr> <87mvvow5fr.fsf@web.de> <876125fzxt.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1445088723 17169 80.91.229.3 (17 Oct 2015 13:32:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 17 Oct 2015 13:32:03 +0000 (UTC) Cc: emacs-devel@gnu.org To: Michael Heerdegen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 17 15:31:52 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 1ZnRaQ-0004SO-GA for ged-emacs-devel@m.gmane.org; Sat, 17 Oct 2015 15:31:50 +0200 Original-Received: from localhost ([::1]:58338 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZnRaP-0003Zo-DP for ged-emacs-devel@m.gmane.org; Sat, 17 Oct 2015 09:31:49 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44989) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZnRa2-0003X8-0F for emacs-devel@gnu.org; Sat, 17 Oct 2015 09:31:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZnRZy-00015b-Ry for emacs-devel@gnu.org; Sat, 17 Oct 2015 09:31:25 -0400 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:43743) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZnRZy-00015P-PL for emacs-devel@gnu.org; Sat, 17 Oct 2015 09:31:22 -0400 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 748C920B36 for ; Sat, 17 Oct 2015 09:31:22 -0400 (EDT) Original-Received: from frontend2 ([10.202.2.161]) by compute6.internal (MEProxy); Sat, 17 Oct 2015 09:31:22 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=M8urJuxbwLEaCT7ddV6kunNuN3A=; b=Cg6+l +2SxALiC75Xg6yXi0UvlKS/B6c+aIeCW2yb+BOVnybXsNTpdNkSkeFkk5ChP0DIu 9eiK3wEpnMvtsaz7v6vLPl+wRNxm54iev0m9Vm1FS/yuhQBp3qocbsQJkbTzWIWw X+Vv0Mf463dpfCv87sMSqME/Tly+7r1MuTymjU= X-Sasl-enc: /eCwV+hHqUYyL8R8YxaSGVjGHHTZeGXICnD6Z3G2cgXV 1445088682 Original-Received: from blueberry (arennes-658-1-212-96.w2-2.abo.wanadoo.fr [2.2.169.96]) by mail.messagingengine.com (Postfix) with ESMTPA id C36526800FD; Sat, 17 Oct 2015 09:31:21 -0400 (EDT) In-Reply-To: <876125fzxt.fsf@web.de> User-Agent: Notmuch/0.19 (http://notmuchmail.org) Emacs/25.0.50.7 (x86_64-unknown-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.28 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:191826 Archived-At: --=-=-= Content-Type: text/plain Michael Heerdegen writes: > Michael Heerdegen writes: > >> > Sure, using "&rest": >> >> So that's missing in the doc of the pcase pattern, too, since it's not >> an obvious thing. > > Thanks for the fixes. But isn't the "&rest" part still missing? Yes, it is, but my changes were not final. We went through some more iterations with Eli, and I will commit more improvements to docstrings in both seq and map ASAP. > And now, the second sentence for the docstring of the `map' pcase > pattern says: > > "Matches if the object is a map (list, hash-table or array), and > each PATTERN matches the corresponding elements of the map." > > where PATTERN is unclear for what it stands. Of course, you can derive > it from the context if you think about it, but that should not be > necessary. > > Sorry for being obtrusive. Don't be sorry, feedback is always welcome, especially went given with good intentions, as you are doing. Nico --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: GPGTools - http://gpgtools.org iQEcBAEBCAAGBQJWIk2oAAoJECM1h6R8IHkQneMH+wSPxJ6IG3m1nlhGUJXzyRFN hjuC4NoaIi4cgNxUkyCUXBEF70EQidvcsgyfhRe5Z9D9aFfxBCbIUf4TeZC6WeOt Dnc6C51oLB/FI5itEmL10E4XpDBe+joo+//PA1Zrduy6z5stfaHrxu1MGbjrJEWz uxva8CA/TnYUTG+L/tfvqk89TxyVjcJADvf1d6F7x1zoZY8dX9IJUmqvOJT45RyM Tvuj1ydcLa12rB5KEh6cn3vFDeQeXlcpoVMN7YaIywal5E3wK1TSfiTka2PcR9Tj h8oxm+xaXL24Bn2+CaJyZBz8LbSBaInwGTswDZwfYBXvf6bNQqHfWceogzblA+U= =Mrzl -----END PGP SIGNATURE----- --=-=-=--