guix-patches
[Top][All Lists]
Advanced

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

[bug#54293] [WIP] home: Add home-git-service-type


From: Ludovic Courtès
Subject: [bug#54293] [WIP] home: Add home-git-service-type
Date: Tue, 29 Mar 2022 15:56:25 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)

Maxime Devos <maximedevos@telenet.be> skribis:

> iyzsong@outlook.com schreef op za 12-03-2022 om 10:22 [+0800]:
>> + (user.name
>> +   (git-option-value *unspecified*))
>
> I think *unspecified* is considered an implementation detail.

Yes, but it may be useful to be able to distinguish between “not
specified” and “false”.

To do that you can either use ‘*unspecified*’ or some other unique
value that you’d compare with ‘eq?’, say:

  (define &not-specified (list 'not 'specified))
  (define (specified? value)
    (not (eq? value &not-specified)))

But really, ‘*unspecified*’ is okay IMO.

Ludo’.





reply via email to

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