From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Instead of pcase Date: Fri, 24 Nov 2023 19:14:19 +0200 Message-ID: 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> <87zfza2aq2.fsf@web.de> <7nmsv9zq6u.fsf@ecube.ecubist.org> <7nv89x5tsi.fsf@ecube.ecubist.org> <87o7focuf5.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5269"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Cc: emacs-devel@gnu.org To: rms@gnu.org, Michael Heerdegen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Nov 24 18:15:15 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 1r6Zlr-00018b-6q for ged-emacs-devel@m.gmane-mx.org; Fri, 24 Nov 2023 18:15:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r6Zl5-0004lY-8M; Fri, 24 Nov 2023 12:14:27 -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 1r6Zl3-0004kw-Pd for emacs-devel@gnu.org; Fri, 24 Nov 2023 12:14:25 -0500 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r6Zl1-0007PB-Ka; Fri, 24 Nov 2023 12:14:25 -0500 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 617E95C01EB; Fri, 24 Nov 2023 12:14:22 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Fri, 24 Nov 2023 12:14:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm3; t= 1700846062; x=1700932462; bh=QffdNRiF2JqOwX1aba/w+UniZ7x422fd1si 6ts+BL+g=; b=Uo+PWSYKZ4lAh4IQXRmbv/fid5mDJYvkQVUZsuHLXz0tPvLMp5G ZY56HMtIE7WB1Am3Xk16T53O2RGK3nQUJepPgLgtJviWwcyYKKUdArqymW4ontaT 0a7+Mv97xfkvc2LPg1uHD/GSNZQ9tgC8RyY/DxcYy9BYjKOs/8JS1mTrC4X03Pi1 haXkDunC5LcAOT7K6XNB02HfI+P6vTRERM6KM9Uk0VhklyHbLqX30zT3PMG/CZ4m cWmOdLgert0XCLXDgbLuG3sFOuoU8Yy9gRKtw/rDV5Yy8uyx9ss0iEkC2FBGyGhD uwIsDRZ/xbGOE8mkKfn8PlQLjbmPu+Cy1TQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1700846062; x=1700932462; bh=QffdNRiF2JqOwX1aba/w+UniZ7x422fd1si 6ts+BL+g=; b=sSSpvVFhNfic/XQR3uARjPxeO26kjMI2Jr/88lDUVzX33yjaRjg 5NCiTIWqZNxCTFuaKOd3g+aY+RNJ+wTyOjnz2wACqehgO1Y3cvjgWzr4FJXOqEIL 0lhADOfkgrYP7AY9R1zqxXLXDo5IUg0kJtfctddalwQWcQQeD7b4aXzminI2ulcV MKndBY5/dsT9iEdU2tGCJM/oRQW1wM3SMTJjqENZtU6mW+roFtQZbtshorowUsiK WMxbZdYTbh9qYU0ncyOp36j4EBbQlzL+Wve+EErZX1Bx/wrLYQdCogxIVhbrBnpN d38/M2Pr5FnoY81g97VeIruFQBgTjUyS/iA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudehhedgleekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepiefgteevheevveffheeltdeukeeiieekueefgedugfefgefhudelgfefveel vdevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 24 Nov 2023 12:14:21 -0500 (EST) Content-Language: en-US In-Reply-To: Received-SPF: pass client-ip=66.111.4.25; envelope-from=dmitry@gutov.dev; helo=out1-smtp.messagingengine.com X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-1.592, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:313177 Archived-At: On 23/11/2023 04:57, Richard Stallman wrote: > > This is the requirement: in some situations a code path should only be > > chosen when a certain structure is present and certain requirements for > > certain parts of the structure are fulfilled. When you separate these > > two things artificially you will make the thing more complicated, you > > need to introduce extra bindings (for the tests) that the BODY doesn't > > use, resulting in poorly readable code. > > Would you be willing to show me two or thhree examples of this, so I > cam make sure those are natural enough in the framework I'm designing? I suggest you try rewriting the definition of completion-help-at-point using your alternative construct. We just discussed what the pcase clauses there do, and they are small enough so this won't be a lot of work, while at the same time they exhibit several of the important features of pcase.