Boost logo

Boost :

From: joel de guzman (isis-tech_at_[hidden])
Date: 2001-05-28 22:57:11


----- Original Message -----
From: "Douglas Gregor" <gregod_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Tuesday, May 29, 2001 7:36 AM
Subject: Re: [boost] Re: [ANN] Spirit C++ parser framework.

> On Monday 28 May 2001 06:55 pm, you wrote:
> psnip]
> > Cheers,
> > Joel de Guzman
> >
> > PS> Is this all worth it? I mean, in the quest to make [] work
> > (to distinguish iterator from grouping), we do all this tricks?
>
> I don't see the point of using [] at all for repetition :)
>
> > KISS:
> >
> > a.Repeat(8);
> > a.Repeat(0, 20);
> > a.Repeat(0, more);
>
> This solution is very clear...
>
> > a(8);
> > a(0, 20);
> > a(0, more);
>
> And this solution is also clear (e.g., it's close to extended regular
> expression syntax), but ()'s are used for both iteration and grouping.
This
> strikes me as being fine (whitespace should be used to make it obvious).
>
> At this point, there are bigger fish to fry...

Agreed. (with a big period)

Joel de Guzman


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk