GNU bug report logs - #30144
[PATCH] doc: Document (ice-9 match) macros.

Previous Next

Package: guile;

Reported by: Arun Isaac <arunisaac <at> systemreboot.net>

Date: Wed, 17 Jan 2018 12:26:01 UTC

Severity: normal

Tags: patch

Done: ludo <at> gnu.org (Ludovic Courtès)

Bug is archived. No further changes may be made.

Full log


Message #23 received at 30144 <at> debbugs.gnu.org (full text, mbox):

From: Arun Isaac <arunisaac <at> systemreboot.net>
To: Mark H Weaver <mhw <at> netris.org>
Cc: 30144 <at> debbugs.gnu.org
Subject: Re: bug#30144: [PATCH] doc: Document (ice-9 match) macros.
Date: Sat, 17 Mar 2018 04:57:17 +0530
>> +Match each variable to the corresponding expression, and evaluate the
>> +body with all matched variables in scope.  Raise an error if any of the
>> +expressions fail to match.  @code{match-let} is analogous to named let
>
> It's only analogous to a named let if a variable name is inserted
> immediately after 'match-let', before the clauses.  In fact, the
> named-let case is not covered by the first line of your definition where
> you give the syntax.

> How about removing any mention of named-let in this definition, and then
> add a separate brief definition for the named-let variant of
> 'match-let'?  It might be worthwhile to keep them separate given that
> their use cases and relevant examples are so different.  What do you
> think?

I have made all the other changes except this one. I have never used
match-let analogous to a named let, and am unable to get a working
example. If you could show me a working example, I'll add it to the new
patch.

I'll send you the revised patch once we decide on the above. Thanks!




This bug report was last modified 7 years and 11 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.