From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Instead of pcase Date: Fri, 01 Dec 2023 18:33:12 +0200 Message-ID: <835y1hannb.fsf@gnu.org> References: <87fs169mjj.fsf@posteo.net> <093f11a1-57c2-5e56-d39b-26fef1c67cbb@gutov.dev> <25942.25061.217864.329049@retriever.mtv.corp.google.com> <87zfzdcz6z.fsf@posteo.net> <763f067b-4ca9-1eba-9f3c-424c38589e9c@gutov.dev> <83fs0navpj.fsf@gnu.org> <838r6ebfhw.fsf@gnu.org> <87jzpx52py.fsf@web.de> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18061"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Michael Heerdegen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Dec 01 17:33:50 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1r96Sc-0004Vw-I3 for ged-emacs-devel@m.gmane-mx.org; Fri, 01 Dec 2023 17:33:50 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r96S6-0004PQ-NQ; Fri, 01 Dec 2023 11:33:18 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r96S5-0004PG-AP for emacs-devel@gnu.org; Fri, 01 Dec 2023 11:33:17 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r96S4-000597-Vi; Fri, 01 Dec 2023 11:33:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=YrYF+w3LfHZyx01jR2btp3otcF8hH3OMmaJOi/8ZUrw=; b=XRJQ6QXZa6CQ xUdC0Ls/d7UZbLxJbjnmnjP+O84weCBru5cqJzWnkeNACf8zceZByRbNCoc8mpD9ts+OKW7orEbTg 9/4LtcT3SXbJNGl9Wbt/TQCTRmlSIoF0rFKPzCVy046LQT0Y21b9J6fs353iDmYTDUQH7Sg67mi+K q77ppUZkTlGSlzni7EwqpA87rMEecpEZ9j5t/AkNAYLxmwFtiMrIqtEVRUHfZBPmAeWnwYV7APVki wTrx0Q2b99tl++9z/y7NLsRghPvcq7ExG8KgcJtaMphpJst4YRnFWMHX7Oa2nUwgnnMZV8qv80olZ GiPq7Uapac6SaGu2Jlhn9w==; In-Reply-To: <87jzpx52py.fsf@web.de> (emacs-devel@gnu.org) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:313446 Archived-At: > Date: Fri, 01 Dec 2023 17:04:09 +0100 > From: Michael Heerdegen via "Emacs development discussions." > > (let ((hookfun #'my-hookfun) > (start 1) (end 99) > (collection (list "foo" "bar")) > (plist `((prop . val)))) > > (pcase `(,hookfun . (,start ,end ,collection . ,plist)) > (`(,hookfun . (,start ,end ,collection . ,plist)) > (list hookfun start end collection plist)))) > ;; ==> (my-hookfun 1 99 ("foo" "bar") ((prop . val))) > #+end_src > > The `pcase' pattern is _literally_ identical to a `backquote' call used > to create the same value. Whatever problem you have with `pcase' also > exists for backquote. I don't have any problems with pcase.