1 |
On Sun, 4 Jan 2009 21:34:18 +0530 |
2 |
"Nirbheek Chauhan" <nirbheek.chauhan@×××××.com> wrote: |
3 |
> How about this: |
4 |
> |
5 |
> New syntax Expanded syntax |
6 |
> Extension of |
7 |
> -------------------------------------------------------------------------------------------------------- |
8 |
> pkg[foo?bar] foo? ( cat/pkg[bar] ) !foo? ( cat/pkg ) |
9 |
> cat/pkg[foo?] |
10 |
> pkg[!foo?bar] foo? ( cat/pkg ) !foo? ( cat/pkg[bar] ) |
11 |
> cat/pkg[foo?] |
12 |
> pkg[foo=bar] foo? ( cat/pkg[bar] ) !foo? ( cat/pkg[-bar] ) |
13 |
> cat/pkg[foo=] |
14 |
> pkg[!foo=bar] foo? ( cat/pkg[-bar] ) !foo? ( cat/pkg[bar] ) |
15 |
> cat/pkg[!foo=] |
16 |
> |
17 |
> IMO, this is simple enough to understand, and use :) |
18 |
|
19 |
It's utterly useless. Unlike the existing shortcut forms, what you're |
20 |
after isn't widely enough used to warrant its own shortcut. Use the |
21 |
expanded form and have done with it. |
22 |
|
23 |
-- |
24 |
Ciaran McCreesh |