
20 Mar
2008
20 Mar
'08
9:53 p.m.
Larry Evans wrote:
What about recording the arity *with* the tag instead of in the expression associated with the tag? IOW, instead of:
expr<Tag,Args,Arity>
have:
expr<tag_arity<Tag,Arity>,Args>
Why? Well, it directly associates the arity with the Tag instead of with the expression. After all, sin(X) is not expressed as sin(x,1). [or in lisp terms, (sin x) is not expressed as (sin x 1) ].
What problem does that solve? -- Eric Niebler Boost Consulting www.boost-consulting.com