Boost logo

Boost :

From: Douglas Gregor (gregod_at_[hidden])
Date: 2001-05-28 18:36:26

On Monday 28 May 2001 06:55 pm, you wrote:
> 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 :)

> 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...


Boost list run by bdawes at, gregod at, cpdaniel at, john at