From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "T.V Raman" Newsgroups: gmane.emacs.devel Subject: Re: Instead of pcase Date: Thu, 16 Nov 2023 10:40:41 -0800 Message-ID: <25942.25129.297282.348152@retriever.mtv.corp.google.com> References: <871qcpn3ep.fsf@web.de> <64993a12-3773-f98d-0a83-2fbf0ba96efa@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39832"; mail-complaints-to="usenet@ciao.gmane.io" Cc: raman@google.com, michael_heerdegen@web.de, emacs-devel@gnu.org To: jporterbugs@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Nov 16 19:41:10 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 1r3hIZ-000A3P-3R for ged-emacs-devel@m.gmane-mx.org; Thu, 16 Nov 2023 19:41:07 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r3hIT-0002Ul-L9; Thu, 16 Nov 2023 13:41:01 -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 1r3hII-0002GC-K0 for emacs-devel@gnu.org; Thu, 16 Nov 2023 13:40:54 -0500 Original-Received: from mail-oa1-x2a.google.com ([2001:4860:4864:20::2a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r3hIE-0005zJ-3f for emacs-devel@gnu.org; Thu, 16 Nov 2023 13:40:49 -0500 Original-Received: by mail-oa1-x2a.google.com with SMTP id 586e51a60fabf-1eb7a8e9dd0so564892fac.3 for ; Thu, 16 Nov 2023 10:40:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1700160043; x=1700764843; darn=gnu.org; h=references:in-reply-to:subject:cc:to:date:message-id :content-transfer-encoding:mime-version:from:from:to:cc:subject:date :message-id:reply-to; bh=tC8olDbGkDWyUnsLmrxIrkkTBK5N20yBHj37mQHFVX8=; b=MWibhsOZzPFPLNRU+jb2mKHcSH04G3f9pJSwc2fL5KcVdfOJ3RjOi7OIkDxblFi5Sq SQBl24J0n5tYyDUGkyjRf0IiHMsylq+nUkjcs93CNKRThTdsWEor6WgVPMNhmQw7b02s bdkQkRcTneJiziYEZzTJnReHjM/2RXmNcIyd+GAr/MUHa7KuXq7FoUSrrSc/Z6N2ZeXg 0KswMyPmBkd2QjRS5l6oly8JzThzlq2pShbtEQovusPPwmOPewIe98l4uuNZhwwmmda5 alBbYy14ovuiyHneGvWvH0zfg169pzLA28RuKW33WlMfqFoEbMWw9pZFWiYo5vf2X9lp ZnkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700160043; x=1700764843; h=references:in-reply-to:subject:cc:to:date:message-id :content-transfer-encoding:mime-version:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=tC8olDbGkDWyUnsLmrxIrkkTBK5N20yBHj37mQHFVX8=; b=rP+22Ru5fdbL5bfmeZs/GrVIy9qPd27J0AnLXo/jXeoUVs1zLl9wSVZXey+wBaZFL8 tGE78U6cmJCJkyRduShIIxzmDkdqu47rd2AyBNijVtNIPbH/wcag9KKVpYvq/rFy+opb YQP7rqOJ6UJ7ja5G7XCrhR/aLovh44kPXotzhQDfZ1qZjKXNVICtKqKb8LLdRG6yLKxs S/cQ0q6dewOFFNWwOe0VfXAYGDnRb9OqhCkSzS02fkwhYLVuG/MQlNMOZPuewLKkRb5B r/H0IQBqAqcPlqm5kwNI+WVrLI4sB0ms8lzoTOrL7LLWQuMtzugI+AYA/MvxUGGlf2kD GjGw== X-Gm-Message-State: AOJu0Yw570xao64e+ULt46Pf3t/+AHT+ONt7/Z08WDVRVX7BBNLZIZIm 8kHHAYge7LtxXdAgG5ZaxswznK+FbThRQzljlcgaPg== X-Google-Smtp-Source: AGHT+IHUAX1Rwm/xVRmuZjwPxQ0LfLHy6Eucfuzi6vabrTwrFUnxiyipRJorZlWbE70j10toWBedXQ== X-Received: by 2002:a05:6870:2b04:b0:1e9:94c1:9179 with SMTP id ld4-20020a0568702b0400b001e994c19179mr22828726oab.21.1700160043127; Thu, 16 Nov 2023 10:40:43 -0800 (PST) Original-Received: from retriever.mtv.corp.google.com ([2620:15c:b5:2:147f:9674:f90a:36a4]) by smtp.gmail.com with ESMTPSA id i4-20020a6561a4000000b005af08f65227sm11272pgv.80.2023.11.16.10.40.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 10:40:42 -0800 (PST) In-Reply-To: <64993a12-3773-f98d-0a83-2fbf0ba96efa@gmail.com> X-Mailer: VM 8.1.1 under 30.0.50 (x86_64-pc-linux-gnu) Received-SPF: pass client-ip=2001:4860:4864:20::2a; envelope-from=raman@google.com; helo=mail-oa1-x2a.google.com X-Spam_score_int: -197 X-Spam_score: -19.8 X-Spam_bar: ------------------- X-Spam_report: (-19.8 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, NICE_REPLY_A=-2.193, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5 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:312827 Archived-At: Yes. especially if a use I was trying to understand had some helpful guidance right next to it; that would also help one learn. Jim Porter writes: > On 11/16/2023 9:31 AM, T.V Raman wrote: > > See my other response re pcase and its use in emacs core; specifically > > completion-at-point. A good compromize might be for the pcase fan who > > wrote that code to explain its use just before the function with some > > comments; that would actually help someone looking at the code to > > understand it, and perhaps even turn a pcase sceptic into a pcase fan. > > Just a thought... would you find a pcase shortdoc with lots of examples > to be useful? I find I learn best from examples, and I think some > well-annotated pcase examples could help demystify the syntax in an > easier-to-digest way compared to the full manual. (The manual has a few > examples already, but I think there's room for a lot more examples.) --