guix-devel
[Top][All Lists]
Advanced

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

Re: Composing service definitions (and maybe fmt)


From: Ludovic Courtès
Subject: Re: Composing service definitions (and maybe fmt)
Date: Wed, 20 Jan 2016 23:13:11 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Christopher Allan Webber <address@hidden> skribis:

> Ludo, you've actually done quite a bit of skribe-style-stuff work! :)
> Do you think this is a good idea?  And what would be the right approach?
> Depending on guile-reader may be a bit heavy for Guix (?), though maybe
> writing a reader macro to do string quasiquoting will not be hard anyway.

I think we don’t want to depend on guile-reader, and I’m rather against
reader macros, except on rare occasions like #' and #~, because they
could interfere with other extensions that people use.

The Skribe syntax is just literal-text-by-default, where

  [foo bar ,baz]

is equivalent to:

  (list "foo bar " baz)

It’s convenient when writing document, but I’m not sure it is so helpful
for config files.  For instance, ‘text-file*’ and ‘mixed-text-file’ get
close to that, but without the reader macro.  See xorg.scm for example.

To me, the question is more about choosing between writing configuration
file bindings and exposing upstream’s configuration file syntax, as was
discussed when Andy posted the Dovecot service.  (To which I don’t have
a better answer than: let’s see on a case-by-case basis.)

WDYT?

But yeah, maybe we need a concrete example to illustrate the various
options.  :-)

Thanks,
Ludo’.



reply via email to

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