Gentoo Archives: gentoo-pms

From: Ciaran McCreesh <ciaran.mccreesh@××××××××××.com>
To: Ulrich Mueller <ulm@g.o>
Cc: gentoo-pms@l.g.o
Subject: Re: [gentoo-pms] [PATCH] How about a \ChangeWhenAddingAnEAPI marker?
Date: Sun, 06 May 2012 19:45:34
Message-Id: 20120506204234.2d26ab89@googlemail.com
In Reply to: Re: [gentoo-pms] [PATCH] How about a \ChangeWhenAddingAnEAPI marker? by Ulrich Mueller
1 On Sun, 6 May 2012 21:40:42 +0200
2 Ulrich Mueller <ulm@g.o> wrote:
3 > > It's easy to miss some places that have to be updated when adding a
4 > > new EAPI. This hack fixes that. It works like this:
5 >
6 > > In pms.tex, at the top, we say
7 >
8 > > \CurrentEAPIIs{4}
9 >
10 > > Then everywhere where we have EAPI dependent content, we put
11 >
12 > > \ChangeWhenAddingAnEAPI{4}
13 >
14 > > which we can then grep for. Also, if you change the current EAPI,
15 > > and forget to change any of the markers, an error is produced.
16 >
17 > This looks a bit over-engineered to me. Wouldn't simple comments serve
18 > the same purpose?
19
20 Comments don't force a failure when you forget about them. Being
21 self-validating makes it hard to screw up accidentally.
22
23 --
24 Ciaran McCreesh

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies