[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: %and, %or, and the return value of assignment
> Ah, then you haven't considered it as I have. Imagine this:
> es my variation
> {foo} @{foo}
> <={foo} {foo}
> {a;b;return c} {a;b;c}
> I would make nullary functions (code segments) explicit and return the
> results of subcommands. For example,
we would have loved to do this, except that it would have turned
if {test -s errors} {
openfile errors
} {
rm -f errors
}
into
if @{test -s errors} @{
openfile errors
} @{
rm -f errors
}
which we considered worse than the alternative, which is the
explicit ``value of'' operator.
[i assume you mean, in es terminology, ``code fragments'' not
``code segements.'']
paul