all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Ian Denhardt <ian@zenhack.net>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH 1/1] Factor out a common pattern into a procedure.
Date: Sun, 19 Oct 2014 22:24:17 +0200	[thread overview]
Message-ID: <8738ajyfim.fsf@gnu.org> (raw)
In-Reply-To: <20141019181507.618.67316@rook.local.tld> (Ian Denhardt's message of "Sun, 19 Oct 2014 14:15:08 -0400")

Ian Denhardt <ian@zenhack.net> 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	other threads:[~2014-10-19 20:24 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-19  2:18 [PATCH 0/1] *** SUBJECT HERE *** Ian Denhardt
2014-10-19  2:03 ` [PATCH 1/1] Factor out a common pattern into a procedure Ian Denhardt
2014-10-19  7:40   ` John Darrington
2014-10-19  9:39     ` Ludovic Courtès
2014-10-19 14:43       ` Mark H Weaver
2014-10-19 17:45         ` Ludovic Courtès
2014-10-19 18:15     ` Ian Denhardt
2014-10-19 20:24       ` Ludovic Courtès [this message]
2014-10-19 21:12         ` Ian Denhardt
2014-10-19 14:57   ` Mark H Weaver
2014-10-19  2:29 ` [PATCH 0/1] *** SUBJECT HERE *** Ian Denhardt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8738ajyfim.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=ian@zenhack.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.