From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.devel Subject: Re: The poor state of documentation of pcase like things. Date: Fri, 1 Jan 2016 11:05:31 -0800 Message-ID: <5686CDFB.2010105@dancol.org> References: <20151216202605.GA3752@acm.fritz.box> <87io3m60bq.fsf@web.de> <877fk1nnk0.fsf@web.de> <8760zlue3j.fsf@gmail.com> <87vb7kajgv.fsf@web.de> <83y4c9ag06.fsf@gnu.org> <87bn95m9eg.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="gVp44TtLrV92vUnctwEM9PkTgwT35mwU6" X-Trace: ger.gmane.org 1451675155 3597 80.91.229.3 (1 Jan 2016 19:05:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 Jan 2016 19:05:55 +0000 (UTC) Cc: Michael Heerdegen , emacs-devel@gnu.org To: David Kastrup , Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 01 20:05:47 2016 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 1aF51G-0003rM-QR for ged-emacs-devel@m.gmane.org; Fri, 01 Jan 2016 20:05:46 +0100 Original-Received: from localhost ([::1]:36532 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aF51F-0005Hk-Ov for ged-emacs-devel@m.gmane.org; Fri, 01 Jan 2016 14:05:45 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48688) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aF51C-0005He-8y for emacs-devel@gnu.org; Fri, 01 Jan 2016 14:05:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aF517-0004T1-Cq for emacs-devel@gnu.org; Fri, 01 Jan 2016 14:05:42 -0500 Original-Received: from dancol.org ([2600:3c01::f03c:91ff:fedf:adf3]:51557) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aF517-0004St-41; Fri, 01 Jan 2016 14:05:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dancol.org; s=x; h=Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:Cc:References:To:Subject; bh=aG7AnJETg+NSP6rO9AY9mX74rFiZu71pOYE/RXbQR3Q=; b=RmY6KpB0YAcOcD2jY+8cYyGUmp5uZRHlwEXR4VdCUD2vthscuK5hdQF/L/Ra3lUfHX/2Uj0xbdmwMO+OtIUN5+cwIWP16j9KYcgCYGafJXMGcKedPDHOFr+/U/ujk/kRbY6Kh5rWQJ9XXyxTqjmQNWYrJPJ6Wsorm8Lc0BiYe2Lr/QGgw7mgSVgBYhNgdaxNgOJgcKiLxCxwFN/UosiNPUoD1OFBedmcAIvl341joKZfka4QZYRj+LzUXwdu6N//aXMZEn4BxBrQph0k7YujZJCGEfycgZkU3O1eNH6Vcf86ThvlP7wAKDbz00/tO37NxNHSS8biPo7JU66G9q3Dig==; Original-Received: from c-67-161-115-4.hsd1.wa.comcast.net ([67.161.115.4] helo=[192.168.1.175]) by dancol.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84) (envelope-from ) id 1aF515-0000qk-O0; Fri, 01 Jan 2016 11:05:35 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 In-Reply-To: <87bn95m9eg.fsf@fencepost.gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2600:3c01::f03c:91ff:fedf:adf3 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:197315 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --gVp44TtLrV92vUnctwEM9PkTgwT35mwU6 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 01/01/2016 10:39 AM, David Kastrup wrote: > John Wiegley writes: >=20 >>>>>>> Eli Zaretskii writes: >> >>> (pcase skip >>> (`nil nil) >>> (`0 t) >>> (_ (setq i (+ i skip -1)) (funcall get-next-frame))))))) >> >> (cond ((null skip)) >> ((eq skip 0) t) >> (t (setq i (+ i skip -1))=20 >> (funcall get-next-frame))) >> >> Not much difference. >=20 > If skip is nil, the first returns probably nil and the second t. One > could probably do >=20 > (and skip > (or (eql skip 0) > (setq ...))) >=20 > I'm not fond of eq for numeric comparisons: that's an Elispism. That's true, but I think it's too pervasive to change now, so why fight i= t? --gVp44TtLrV92vUnctwEM9PkTgwT35mwU6 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCAAGBQJWhs37AAoJEN4WImmbpWBlpoQP/2OB+bnjUBSabTNXK0kM3GQS zE4i09JgR6LaVvP20M1pleBAXy/79dQiU+STVjGu84zFAz63hiCn9+FHgURmISb8 5eA9DYdOnBEY0GUnjgV25M+jEXxECRSbdg7TEmV/oWZIAm/Rsrn2N607zxnN4Zx+ +VHtFqJ0nZCYMufL56Wv5P3qKy/MBEkpoJP93XDrtH+733JOVXpRCRjg+wzJx9eC fARUiN7xCjR1roBPjEIYeat9p5Y+puaZpu9jlY75GMX/YSKCdCe/lgkBWF2rv9Yg q1YHUmGwbDMfVYu0qK+FIRDa+Ftn3YO7jmjoHOlk9PucYFIp4ZVNRmKvWpt25NKh cV5kwLwSvAembhDl+0WTo3ull+Hx5aMjFMu9exr0WAXvpLOBCcC5XuwB4IbCfma8 YSClfh1jjUeD8lm7nuV5ZM7Pp5BjuyZF2fbuKL6WW4FJiRD0YtVEgfCNInpHKEpm rT6Ni72doUFo1dhDRGy00DjLsy7hn/bmU6SGOfupIXJzRu2rqD40Yqkn64hoqIiB cieB+SKH3lQc1mucBIotFBDpdgg7wEWf7zncYnBTrB8yz2qRU2acsP1WELRiHPis l46RpPQXsI/LvB7LgF4XSNKgqNC97pHobciGCxuoyzILt65uOJs1PUaC2qoRJ52E fYEx2oz7dZ0eFyl11vig =pwRS -----END PGP SIGNATURE----- --gVp44TtLrV92vUnctwEM9PkTgwT35mwU6--