On 14/7/26 22:20, Saku Laesvuori wrote:
On Tue, Jul 14, 2026 at 08:05:53PM +0200, Hugo Buddelmeijer via Development of
GNU Guix and the GNU System distribution. wrote:
I actually think it is cleaner to not use the record matcher (since it
is constructor order dependent). You can use the "field" (i.e. procedure
result) and predicate matchers, `=` and `?`, to do it like this
```
(match record
((? my-record?
(= my-record-field-a a)
(= my-record-field-b b)
...)
...)
```
using the exported predicate and accessor procedures.
Thanks, I did not realize it is possible to do that, seems exactly what
I was looking for.