dummy argument to return



On 11/10/07, Barton Willis <willisb at unk.edu> wrote:

> Maybe it doesn't matter, but I think that users are sometimes a
> bit frightened by "Maxima encountered a Lisp error." Why not
> allow things like
>
>   block([], return(3,4,%pi)) --> %pi

I guess I don't really see the point to that; I don't see how any
generalization of the idea of a return value leads one to consider
it to be the last in a list of values ... Why not, say, the first one,
or the middle one?

Having written that, now it occurs to me maybe return(a, b, c)
should return a list of three values. But that's already possible
via return([a, b, c]), and for consistency return(a) should return [a].
So after considering that, I think return(a, b, c) should trigger a
Maxima error.

best

Robert