bug-guix
[Top][All Lists]
Advanced

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

Re: [PATCH] gnu-maintenance: Improve 'official-gnu-packages'; add the re


From: Ludovic Courtès
Subject: Re: [PATCH] gnu-maintenance: Improve 'official-gnu-packages'; add the related procedures.
Date: Tue, 26 Mar 2013 22:21:48 +0100
User-agent: Gnus/5.130005 (Ma Gnus v0.5) Emacs/24.2 (gnu/linux)

Nikita Karetnikov <address@hidden> skribis:

>> The suggestion I made was in favor of using a single
>> ‘make-gnu-record-descriptor’ call with all the field values (as opposed
>> to creating the record with all fields set to #f, and then using
>> ‘setters’ to change them to their actual value.)
>
> OK.  But why functional setters, then?

They’re great, but here you know all the field values, so it’s more
natural and more efficient to make a single call to the constructor.

> Can't I use 'define-record-type'?

You can if you end up not using the “syntactic constructor” with named
fields (as was the case in my example).

Ludo’.



reply via email to

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