[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’.
- [outreachy] Walk through the Git history (guix git {authenticate, log}), zimoun, 2020/12/11
- Re: [outreachy] Walk through the Git history (guix git {authenticate,log}), Magali, 2020/12/11
- Re: [outreachy] Walk through the Git history (guix git {authenticate,log}), Magali, 2020/12/15
- Re: [outreachy] Walk through the Git history (guix git {authenticate,log}), zimoun, 2020/12/16
- Re: [outreachy] Walk through the Git history (guix git {authenticate,log}), Ludovic Courtès, 2020/12/18
- Re: [outreachy] Walk through the Git history (guix git {authenticate,log}), Magali, 2020/12/18
Re: [outreachy] Walk through the Git history (guix git {authenticate,log}), Mathieu Othacehe, 2020/12/12