[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: A friendlier API for operating-system declarations
From: |
Liliana Marie Prikler |
Subject: |
Re: A friendlier API for operating-system declarations |
Date: |
Mon, 26 Feb 2024 20:58:22 +0100 |
User-agent: |
Evolution 3.46.4 |
Am Sonntag, dem 25.02.2024 um 13:27 -0800 schrieb antlers:
> Thanks for the detailed response c:
>
> The blocker is that AFAIK we can't tell if a record-field was defined
> as thunk-ed or delay-ed outside of the expansion of the
> `define-record-type*' form that defines it, nor programatically
> access it's getter/setter (the pair `(guix records)` defines, which
> accounts for eg. thunk-ing, and is distinct from the underlying pair
> returned by eg. `record-accessor').
You might want to have a look at match-record or even define your
modify-record in terms of it. IIUC it ought to handle exactly the
problem you're talking about while also making it slightly easier for
you to structure your updating code.
Cheers