Gentoo Archives: gentoo-dev

From: "Amadeusz Żołnowski" <aidecoe@g.o>
To: "Michał Górny" <mgorny@g.o>
Cc: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH] rebar.eclass: Build Erlang/OTP projects using dev-util/rebar
Date: Sat, 21 May 2016 08:36:14
Message-Id: 87a8jjx0yi.fsf@freja.aidecoe.name
In Reply to: Re: [gentoo-dev] [PATCH] rebar.eclass: Build Erlang/OTP projects using dev-util/rebar by "Michał Górny"
1 Michał Górny <mgorny@g.o> writes:
2 >> >> + [[ -d include ]] && doins -r include
3 >> >> + [[ -d bin ]] && for bin in bin/*; do dobin "$bin"; done
4 >> >
5 >> > Please don't do inlines like this.
6 >>
7 >> Is there a particular problem with this?
8 >
9 > Readability and maintainability. At some point someone may want to
10 > extend this, and it will no longer work as one-liner.
11
12 That's rather subjective. Given the context I find concise. When
13 uninlined it takes 4 lines more, gets out of context and looks more
14 noisy to me. If someone would like to extend the inline version it could
15 be uninlined at that point.
16
17 --
18 Amadeusz Żołnowski

Attachments

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