guix-devel
[Top][All Lists]
Advanced

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

Re: [PATCH 1/1] Factor out a common pattern into a procedure.


From: Ludovic Courtès
Subject: Re: [PATCH 1/1] Factor out a common pattern into a procedure.
Date: Sun, 19 Oct 2014 22:24:17 +0200
User-agent: Gnus/5.130011 (Ma Gnus v0.11) Emacs/24.3 (gnu/linux)

Ian Denhardt <address@hidden> skribis:

> How about this: separate it out into to functions: version-prefix, which
> is the same as what I have now, but takes a (mandatory) argument
> specifying the number of fields, and feature-version, which is defined
> like:
>
>     (define (feature-version version) (version-prefix version 2))
>
> ..with an appropriate docstring explaining the use case. Thoughts?

Sounds good to me, although I’d rather call ‘feature-version’, say,
‘version-major+minor’, on the grounds that the semantics of version
numbers are specific to each project.  Mark?

(Please forgive the extra bikeshedding.  ;-))

Thanks,
Ludo’.



reply via email to

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