From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Newsgroups: gmane.emacs.devel Subject: Re: Replace trivial pcase occurrences in the Emacs sources Date: Wed, 24 Oct 2018 11:47:03 -0400 Message-ID: <1249c6c5-6ff6-8b1e-102f-0b1b0942a42e@gmail.com> References: <20151216202605.GA3752@acm.fritz.box> <83si2f9ve4.fsf@gnu.org> <56889EC3.3040108@yandex.ru> <877fjrkpdf.fsf@fencepost.gnu.org> <56892334.4000106@yandex.ru> <8760zakb7q.fsf@fencepost.gnu.org> <56892BDA.6060103@dancol.org> <871t9yk98g.fsf@fencepost.gnu.org> <568936F0.3060505@yandex.ru> <87wprqitj5.fsf@fencepost.gnu.org> <56893C8C.3060200@yandex.ru> <87oad2irtd.fsf@fencepost.gnu.org> <5689456A.1010601@yandex.ru> <87egdy8tyz.fsf@fencepost.gnu.org> <56895FDE.4060406@yandex.ru> <8760za8r4a.fsf@fencepost.gnu.org> <87h9iunkcg.fsf@web.de> <87h8hc4xw2.fsf_-_@web.de> <83tvlcsnee.fsf@gnu.org> <87pnw037ar.fsf@web.de> <83ftwvs7y9.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1540395909 28612 195.159.176.226 (24 Oct 2018 15:45:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 24 Oct 2018 15:45:09 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 24 17:45:05 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 1gFLLE-0007Ke-0k for ged-emacs-devel@m.gmane.org; Wed, 24 Oct 2018 17:45:04 +0200 Original-Received: from localhost ([::1]:49113 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFLNK-0002dx-JA for ged-emacs-devel@m.gmane.org; Wed, 24 Oct 2018 11:47:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39446) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFLNE-0002dq-MC for emacs-devel@gnu.org; Wed, 24 Oct 2018 11:47:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gFLNB-0004Zq-Gw for emacs-devel@gnu.org; Wed, 24 Oct 2018 11:47:08 -0400 Original-Received: from mail-qt1-x82c.google.com ([2607:f8b0:4864:20::82c]:42664) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gFLNB-0004ZW-Bp for emacs-devel@gnu.org; Wed, 24 Oct 2018 11:47:05 -0400 Original-Received: by mail-qt1-x82c.google.com with SMTP id j46-v6so6066437qtc.9 for ; Wed, 24 Oct 2018 08:47:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=/Y4mbpmvMu1LHxtldg11ERorqb8yi3wDU8O3OWwjwN8=; b=kAJ1vaMj5TqlBuO/C/VVe8ZMvgcbzjADfsR/4dEXir1c2IbbtMh6ZOdcNtQFzurkmf jpDnw72zFHEXAZeJX+sSWEpu932qMI4mQQNRLSGSkYbzBhkcGfe/z57qAbYgdqeZYilk 7hjS/CjWLDmdZjPsfUZ5sdmA9d56n+m+pzNGa7dBCLrUe563Wc6EEUOw9uZCS5duCTXF HmCnREOG7yp8webjDjuzl+0S2nTas1jVHrcpEgvQulROwAJ2VEafLJTVL6HgNACE5XmF hyP4ppgu3lmhAlkgHVepzwM7UrmRsoA8X8G61/fXTxXZaW2Sddcm6Vyn81o+75XAzQGu lFVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=/Y4mbpmvMu1LHxtldg11ERorqb8yi3wDU8O3OWwjwN8=; b=GI6Y+Iz1Q6LiGMt++plVLYPoWBl7HwoNiIJvjXXrLeIHQDFySM0fh1re4Pws9ItQ70 ER+WzMUVP1NDMODM7+cjeYLGOz2FmrW3QOETJZW1WGpb41C+68DumQurKEyRRpY5FCIh lrSfbILGA7J8xXd+QC+rVO/4aHS2bdnBQfpmxri0Yv6vStTvCXjZ4j4a0wnZePaC2u7f n0DjEiKpabgacPTRHQQjk4UwuxvRP153Nt8llR8jcRw4B/PWPxjekZodoxLQQqFrdgVf 0mV4y6cQsaoJFe0sExHqBjxdX8axhhmmc/OUhK0lf/c6ebXb5/zMW64y3yqbTriAF8QE 5iog== X-Gm-Message-State: AGRZ1gLLLRugB38z3A7zzeJpkzI5ZHB0CZTTZXLh5E/CdDDK/quHcrtu QSGP9jsM9/cEzPB8y91OzMIln6dA X-Google-Smtp-Source: AJdET5e+Uhe14P3A9r+5geQuG+e1pWI+/9OfjlgtbPuY8E3YOnlYb76/Ybp0vkFzKCf90XREWuX/Rg== X-Received: by 2002:aed:2f82:: with SMTP id m2-v6mr3000457qtd.85.1540396024562; Wed, 24 Oct 2018 08:47:04 -0700 (PDT) Original-Received: from [18.26.2.123] (26-2-123.dynamic.csail.mit.edu. [18.26.2.123]) by smtp.gmail.com with ESMTPSA id j66-v6sm3424052qkf.1.2018.10.24.08.47.03 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Oct 2018 08:47:03 -0700 (PDT) In-Reply-To: <83ftwvs7y9.fsf@gnu.org> Content-Language: en-GB X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::82c 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:230633 Archived-At: On 24/10/2018 11.03, Eli Zaretskii wrote: > Is it because people are too lazy to write (eq a b) as part of 'cond'? > Or is there something else I'm missing? I think some of us (me, at least), just like the forms you posted better :) It's not a matter of lazyness, just preference. The repetition of "eq" in each "cond" branch just looks redundant to me, and I have no trouble reading the pcase forms.