all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Brendan Tildesley <mail@brendan.scot>
To: Leo Prikler <leo.prikler@student.tugraz.at>
Cc: guix-devel@gnu.org
Subject: Re: A better way to access records.
Date: Fri, 30 Oct 2020 21:59:59 +1100	[thread overview]
Message-ID: <cdcd38c0-164a-b0d3-5c46-6dafec8be62c@brendan.scot> (raw)
In-Reply-To: <1f780c067b3dec2f320e056e99b93fbd076b18ae.camel@student.tugraz.at>

On 30/10/20 8:49 pm, Leo Prikler wrote:
> Well, the "functional" way of accessing them all in one go would be to
>    (map (cute <> foo) (list package-name package-version package-...))
> But I assume you want syntax like
>
> (let-field record field exp*)
> (let-fields record (field1 field2...) exp*)
No I didn't want to specify the fields at all, just have all of them 
automatically defined.
> analogous to (srfi srfi-9 gnu) set-field and set-fields, am I right?
>
> Regards, Leo
>



  reply	other threads:[~2020-10-30 11:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-30 10:49 A better way to access records Leo Prikler
2020-10-30 10:59 ` Brendan Tildesley [this message]
2020-10-30 19:47   ` Danny Milosavljevic
  -- strict thread matches above, loose matches on Subject: below --
2020-10-30 10:28 Brendan Tildesley
2020-10-30 11:04 ` Bengt Richter
2020-10-30 18:17 ` Taylan Kammer
2020-10-31 22:01 ` Ludovic Courtès
2020-11-13 11:24   ` Brendan Tildesley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cdcd38c0-164a-b0d3-5c46-6dafec8be62c@brendan.scot \
    --to=mail@brendan.scot \
    --cc=guix-devel@gnu.org \
    --cc=leo.prikler@student.tugraz.at \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.