|
Boost : |
From: David Abrahams (abrahams_at_[hidden])
Date: 2001-05-22 13:27:34
----- Original Message -----
From: "joel de guzman" <joel_at_[hidden]>
> You have a point though with the + op. Right now Spirit
> uses the prefix + (for one or more), the prefix * (for zero
> or more). Infix + for sequencing? Hmmm... Well C++ uses
> the infix plus for mult and the prefix for deref.
>
> Comments?
Only that sequencing is the most common operation, so it should have the
simplest syntax. Since we can't get by with no syntax at all, I don't mind
writing
repeat<0>(a) meanting a*
repeat<1>(a) meaning a+
repeat<3,5>(a) meaning aaa | aaaa | aaaaa
-Dave
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk