
28 Apr
2007
28 Apr
'07
7:51 a.m.
On 27/04/07, Eric Niebler <eric@boost-consulting.com> 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