On Mon, 2008-10-20 at 17:09 +0300, Yaroslav wrote:
> > Or here's an easier way to ask the same: is there a simple reason
> > for
> >   $ bind /foo /really/nested/bar
> > always triggering walks into /foo and /really/nested/bar and not
> > allowing for "lazy evaluation"?
> 
> The evaluation of bind argument "happens at the time of the bind, not
> when the binding is later used." -- see bind(2).

That is well understood. But perhaps you've misunderstood my question
(well, either that or I wasn't too articulate asking it). The question
was really about *why* such a behavior was chosen to begin with? On the
surface it seems that namespace-as-a-substitution table is not such
a bad idea AND it adds flexibility. After all, it is trivial to emulate
eager evaluation if you have lazy one implemented, but not the other
way around.

Of course, "you don't argue with Ken" (c) ;-) Which means that
there's a pretty good reason for bind evaluation to be eager, its just
that it doesn't seem obvious to me. Hence the question.

Thanks,
Roman.


Reply via email to