[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Multiple assignments?



>>>>> On Mon, 17 May 1993 14:47:52 -0400, Conrad Hughes
>>>>> <chughes@maths.tcd.ie> said:

Conrad> Would a "null variable" be useful for list assignment?
Conrad> e.g. (a null b c) = some-list

Conrad> .. to dump the second element of some-list - it's unnecessary since you
Conrad> could just as easily leave unwanted stuff in a real variable which you
Conrad> never use; anyway: a random thought on first seeing the subject pop up.

As you say, it's not needed, so I think it should be left out.  But it
would be nice if the implementation assigned to the variables in
left-to-right order, so you could say

  (a b b c) = some-list

and you would have the same effect.

- Harald