
5 Aug
2005
5 Aug
'05
3:06 p.m.
Rob Stewart <stewart@sig.com> writes:
What about user-supplied predicates? You can't use infix notation then.
all_of(a)._(frobnicates, any_of(b))
all_of(a)._,frobnicates, any_of(b)
all_of(a)._ %frobnicates% any_of(b)
all_of(a)._ |frobnicates| any_of(b)
all_of(a)._ <frobnicates> any_of(b)
(etc)
That gives some notion of infix, but it seems entirely too contrived to me.
What about this:
all_of(a)(frobnicates, any_of(b))
It seems a little better.
I started there, but the placement of parens seems to arbitrary and unbalanced. Also, the whole point of infix is to get rid of those. -- Dave Abrahams Boost Consulting www.boost-consulting.com