From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arun Isaac Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH v3] docs/match: pattern matcher example makeover Date: Fri, 03 Feb 2023 12:05:25 +0000 Message-ID: <878rhfx8ca.fsf@systemreboot.net> References: <20230201130930.6624-1-blake@reproduciblemedia.com> <9725d8d9-faf2-3306-94ae-209086aa5a82@telenet.be> <20230202144720.306d1bb3@aicha> <7zk00zkoqc.fsf@reproduciblemedia.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17623"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Maxime Devos , guile-devel@gnu.org To: Blake Shaw , David Pirotte Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Fri Feb 03 13:06:03 2023 Return-path: Envelope-to: guile-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 1pNupN-0004H9-DY for guile-devel@m.gmane-mx.org; Fri, 03 Feb 2023 13:06:01 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pNupB-0007lR-UH; Fri, 03 Feb 2023 07:05:49 -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 1pNup9-0007lA-VX for guile-devel@gnu.org; Fri, 03 Feb 2023 07:05:47 -0500 Original-Received: from mugam.systemreboot.net ([139.59.75.54]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pNup7-0001v4-9V for guile-devel@gnu.org; Fri, 03 Feb 2023 07:05:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Type:MIME-Version:Message-ID:Date: References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=TwylRlUVXpRW8bcFEJMQDn03WGyPjvr+mNaCTd06LM0=; b=pGH98MBVvA7eKX/hNno4KYMdCD NmeJuvNOkdsQKmkH+ZG8NaLR5gA7vpu6hTnVrQCeHzMAM399SwK19r0ry7rG3MsBWVpdqPXFhFw6l JGbeB4mkNd1WTFrzV0Ibn1s5HuBHCu5apIKlyCQFt9AC6uVGO0eH7qjhEGGQWMPpIxGFfFzUE9CSf Et5dzdKF/FjUuSlbU2ZJLMKNbSku//Ctp9ZS9Gq/IYRVmdDrudNn1ySBpsZy5V0o647xH1UOtEDte CJadZqTrONoqwBvHh9rbK33gnIrShwZ7AURXjktMNNzG1bXmOXSxGjuevmgmHwGTjCeWexCGwawZY f7XrHHYQ==; Original-Received: from [192.168.2.1] (port=58276 helo=localhost) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1pNuos-0002Tk-3A; Fri, 03 Feb 2023 17:35:32 +0530 In-Reply-To: <7zk00zkoqc.fsf@reproduciblemedia.com> Received-SPF: pass client-ip=139.59.75.54; envelope-from=arunisaac@systemreboot.net; helo=mugam.systemreboot.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.devel:21675 Archived-At: Hi Blake, > Well, these conventions can be found throughout the gamut of scheme > literature going back to the 80s, and some of the largest scheme > projects, such as Chez, Racket, etc. employ them. So if you're > getting into Scheme, you'll necessarily encounter them, and if you > haven't been made aware that brackets are syntactic sugar for parens > in Scheme, or if that doesn't become apparent with some quick repl > experimentation, you've probably jumped into pattern matching a bit > too quickly. > > But overall, it seems the objections against the Indiana style here > are primarily concerned with individual, current user/contributor > preferences, rather than out of a concern for the target audience, > which are newcomers. I don't think I agree. When I was a newcomer to guile and was reading the sxml-match documentation in the manual for the first time, I found it very confusing that there were square brackets. At that point, I understood match but was confounded into thinking that sxml-match was completely different due to the square brackets. Finally, when I understood, I contributed a patch making everything round parentheses. https://issues.guix.gnu.org/30920 I'd say a typical newcomer is not familiar with the gamut of scheme literature going back to the 80s. I certainly wasn't, and still am not to be honest. Cheers! Arun