guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [outreachy] Walk through the Git history


From: Ludovic Courtès
Subject: Re: [outreachy] Walk through the Git history
Date: Mon, 14 Dec 2020 11:20:27 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

Hi,

zimoun <zimon.toutoune@gmail.com> skribis:

> On Sat, 12 Dec 2020 at 14:24, Magali <magalilemes00@gmail.com> wrote:
>
>>> Awaiting how to walk the history tree, I am proposing to use the loop as
>>> Mathieu said.  However, ’match’ is preferred over ’car’.
>>
>> I got curious as to why it is preferred, hehe. Is there a special
>> reason?
>
> I do not really know.  I am just taking in count previous Ludo’s
> comments, for example [1].  From my understanding, it seems more
> aesthetic.  Maybe Ludo or someone else would comment more. :-)

‘match’ is usually clearer and less error-prone: it checks that the list
actually has the right shape.

  https://guix.gnu.org/manual/en/html_node/Data-Types-and-Pattern-Matching.html
  https://www.gnu.org/software/guile/manual/html_node/Pattern-Matching.html

I hope this sheds some light on this!

Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]