[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Idea: Function composition to declare operating-system
From: |
Ludovic Courtès |
Subject: |
Re: Idea: Function composition to declare operating-system |
Date: |
Fri, 02 Sep 2022 16:11:33 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) |
Hi Théo,
Théo Maxime Tyburn <theo.tyburn@gmail.com> skribis:
> I experimented on a functional approach to the operating
> system declaration. My goal was to be able to pass an operating-system
> instance to a composition of functions, modifying it one after another
> and returning the desired operating-system object. I find this approach
> more convenient because it allows for better segmentation of the system
> features. I achieved to make it work for the system declaration I
> usually use and I’d like to share it with you.
Neat! In some cases, having “transformation” functions is clearer
indeed. There’s a couple of them in the code, such as
‘virtualized-operating-system’, that make it easy to adapt an OS config
to a specific use case.
Thanks for sharing!
Ludo’.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Idea: Function composition to declare operating-system,
Ludovic Courtès <=