Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: wired@g.o
Subject: Re: [gentoo-dev] A more natural (human-friendly) syntax for dependencies
Date: Sat, 22 Sep 2012 17:26:25
Message-Id: 20120922192524.328e3ba4@pomiocik.lan
In Reply to: Re: [gentoo-dev] A more natural (human-friendly) syntax for dependencies by Alex Alexander
1 On Sat, 22 Sep 2012 20:11:48 +0300
2 Alex Alexander <wired@g.o> wrote:
3
4 > On Sep 22, 2012 7:38 PM, "Michał Górny" <mgorny@g.o> wrote:
5 > >
6 > > emerge 'foo >= 1.1' 'bar < 1.0'?
7 > > emerge foo '>=' 1.1 bar '<' 1.0?
8 >
9 > How is the above easier to read than
10 >
11 > emerge >=foo-1.1 <bar-1.0
12
13 Did you even test it? That would create '=foo-1.1' and then fail trying
14 to read 'bar-1.0'. It's rather:
15
16 emerge '>=foo-1.1' '<bar-1.0'
17
18 > I think your example is working against you*.*
19 >
20 > The current syntax is much easier to read than the
21 > quote-and-whitespace-tracking horror of your example :-P
22
23 It's no less quoting than in the current case. And it could be simply
24 extended to supporting quoting-less syntax, e.g.:
25
26 emerge foo -gt 1.1 bar -lt 1.0
27
28 --
29 Best regards,
30 Michał Górny

Attachments

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

Replies