[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#54293] [PATCH v2] home: Add home-git-service-type.
From: |
Maxime Devos |
Subject: |
[bug#54293] [PATCH v2] home: Add home-git-service-type. |
Date: |
Sat, 12 Mar 2022 11:24:52 +0100 |
User-agent: |
Evolution 3.38.3-1 |
iyzsong@outlook.com schreef op za 12-03-2022 om 10:22 [+0800]:
> + (merge-options (lambda (options) ;merge options by section
> + (fold
> + (lambda (e prev)
> + (match e
> + ((section variables ..1)
> + (begin
> + (let ((v (assv-ref prev section)))
> + (assv-set! prev section
> + (if v (append v variables)
> + variables)))))))
> + '() options))))
Seems rather imperative. Can this be avoided, e.g. using vhashes?
Excerpt from the manual:
> 18.5.1 Programming Paradigm
> ---------------------------
>
> Scheme code in Guix is written in a purely functional style. One
> exception is code that involves input/output, and procedures that
> implement low-level concepts, such as the ‘memoize’ procedure.
Greetings,
Maxime.
signature.asc
Description: This is a digitally signed message part
- [bug#54293] [PATCH v2] home: Add home-git-service-type., (continued)
- [bug#54293] [PATCH v2] home: Add home-git-service-type., iyzsong, 2022/03/11
- [bug#54293] [PATCH v2] home: Add home-git-service-type., Maxime Devos, 2022/03/12
- [bug#54293] [PATCH v2] home: Add home-git-service-type., Maxime Devos, 2022/03/12
- [bug#54293] [PATCH v2] home: Add home-git-service-type., Maxime Devos, 2022/03/12
- [bug#54293] [PATCH v2] home: Add home-git-service-type., Maxime Devos, 2022/03/12
- [bug#54293] [PATCH v2] home: Add home-git-service-type., Maxime Devos, 2022/03/12
- [bug#54293] [PATCH v2] home: Add home-git-service-type., Maxime Devos, 2022/03/12
- [bug#54293] [PATCH v2] home: Add home-git-service-type., Maxime Devos, 2022/03/12
- [bug#54293] [PATCH v2] home: Add home-git-service-type., Maxime Devos, 2022/03/12
- [bug#54293] [PATCH v2] home: Add home-git-service-type.,
Maxime Devos <=
- [bug#54293] [PATCH v2] home: Add home-git-service-type., Maxime Devos, 2022/03/12
- [bug#54293] [PATCH v2] home: Add home-git-service-type., Maxime Devos, 2022/03/12
- [bug#54293] [PATCH v2] home: Add home-git-service-type., Maxime Devos, 2022/03/12