Boost logo

Boost :

From: Stuart Dootson (stuart.dootson_at_[hidden])
Date: 2007-04-28 03:51:38


On 27/04/07, Eric Niebler <eric_at_[hidden]> wrote:
>
> No, I think you got it. Proto::_ is a wildcard pattern that matches
> anything. In the sense that it is never /substituted/ with anything, it
> is not a placeholder. I misspoke.
>
> I could rename proto::_ to proto::anything, and that would be more
> evocative of its meaning, but I still like proto::_ better.
>
> --
> Eric Niebler

I think proto::_ is fine as well - there *is* precedent for _ - as
Maurizio said, all the best functional languages (Haskell, ML, Erlang)
use _ as a wildcard in pattern matching. Stick with it.

Stuart Dootson


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