[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Services can now have a default value
From: |
Ludovic Courtès |
Subject: |
Re: Services can now have a default value |
Date: |
Sun, 23 Apr 2017 00:57:18 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) |
Christopher Allan Webber <address@hidden> skribis:
> Ludovic Courtès writes:
>
>> Hello,
>>
>> Carlo Zancanaro <address@hidden> skribis:
>>
>>> On Thu, Apr 20 2017, Ludovic Courtès wrote:
>>>> There must be some sort of a mapping between service types and
>>>> configuration types, indeed, but I’m not sure how to achieve it.
>>>>
>>>> One solution would be to have all the <foo-configuration> records
>>>> inherit (in the OO sense) from <service>, or something along these
>>>> lines.
>>>
>>> This was my first thought. I couldn't see how to do OO-style inheritance
>>> with the SRFI-9 API, though. I'm not very experienced with Guile (or
>>> scheme generally), so I might do some more reading about that.
>>
>> SRFI-99 supports inheritance, though there’s currently no SRFI-99 module
>> in Guile proper:
>>
>> https://srfi.schemers.org/srfi-99/srfi-99.html
>>
>> Oh and there’s also R6RS records, SRFI-35… no shortage of record APIs!
>> :-)
>
> A record interface with inheritance! Neat.
>
> Though hey, if you're going to add inheritance, we also have GOOPS, and
> with the clone macro I sent to the mailing list a while ago that I
> worked on with Janneke, we even have immutable GOOPS! ;)
> Plus then you get generic methods!
Point taken! :-)
I genuinely didn’t even think about GOOPS here ;-), but you’re right.
Ludo’.
- Re: Services can now have a default value, (continued)
- Re: Services can now have a default value, Ludovic Courtès, 2017/04/20
- Re: Services can now have a default value, Carlo Zancanaro, 2017/04/20
- Re: Services can now have a default value, Ludovic Courtès, 2017/04/21
- Re: Services can now have a default value, Carlo Zancanaro, 2017/04/21
- We need an RFC procedure [Re: Services can now have a default value], ng0, 2017/04/21
- Re: We need an RFC procedure [Re: Services can now have a default value], Ricardo Wurmus, 2017/04/22
- Re: We need an RFC procedure [Re: Services can now have a default value], ng0, 2017/04/22
- Re: We need an RFC procedure [Re: Services can now have a default value], Ludovic Courtès, 2017/04/22
- Re: Services can now have a default value, Christopher Allan Webber, 2017/04/22
- Re: Services can now have a default value, Jan Nieuwenhuizen, 2017/04/22
- Re: Services can now have a default value,
Ludovic Courtès <=