Hi,

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

> On Sat, 12 Dec 2020 at 14:24, Magali <magalileme...@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