unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Ioannis Panagiotis Koutsidis <IXK680@student.bham.ac.uk>
Cc: guix-devel@gnu.org
Subject: Re: GSoC 2018 Syntax and semantics of systemd units in the Shepherd - 1st update
Date: Tue, 12 Jun 2018 15:11:10 +0200	[thread overview]
Message-ID: <87vaaop2tt.fsf@gnu.org> (raw)
In-Reply-To: <9b3b976b-3a3f-d5b6-2aff-8200314f7b7a@student.bham.ac.uk> (Ioannis Panagiotis Koutsidis's message of "Mon, 11 Jun 2018 15:07:23 +0300")

Heya,

Ioannis Panagiotis Koutsidis <IXK680@student.bham.ac.uk> skribis:

> Thank you a lot for your comments! I will make sure to make the changes that you
> suggested.

Awesome.

> As for match and things like car/cdr, I had issues with match and signal handling
> in the service file, which was why I changed it with a cond. As for the unit parser
> I also take the rest of the list via cdar because match in something like
> (x y rest ...) does not bind rest - I will probably have to use (x . (y . rest)) in
> the replacement.

If you have a specific example, we can look at it.  Rest elements in
‘match’ patterns should definitely get bound.  Here’s an example at the
Guile REPL:

--8<---------------cut here---------------start------------->8---
scheme@(guile-user)> ,use(ice-9 match)
scheme@(guile-user)> (match '(hello brave gnu world!)
		       ((x rest ...)
			rest))
$2 = (brave gnu world!)
--8<---------------cut here---------------end--------------->8---

Here ‘rest’ is bound to the cdr of the list.

If you want let’s get in touch on IRC to discuss the issue that you had.

Cheers,
Ludo’.

  reply	other threads:[~2018-06-12 13:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-11  3:02 GSoC 2018 Syntax and semantics of systemd units in the Shepherd - 1st update Ioannis Panagiotis Koutsidis
2018-06-11 11:47 ` Ludovic Courtès
2018-06-11 12:07   ` Ioannis Panagiotis Koutsidis
2018-06-12 13:11     ` Ludovic Courtès [this message]
2018-06-25 10:47 ` Gábor Boskovits
2018-06-29 19:15   ` Ioannis Panagiotis Koutsidis

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=87vaaop2tt.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=IXK680@student.bham.ac.uk \
    --cc=guix-devel@gnu.org \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).