None

Donald Beaudry (don@vicorp.com)
Mon, 25 Apr 94 11:23:23 EDT

Ok, now that we got that multi-line string stuff out of the way...

Recently was thinking about nothing... well actually about None. It
occured to me that the implementation of None is a bit too minimal. I
was wondering if anyone else thought the same.

More specifically, I think that it would be nice if None was also a
sequence of length zero. I have written code that usually returns a
list but often the list is empty. In this case, I would rather just
return None, but doing so requires that the caller check for this
special case before iterating over the result. If None was a sequence
of length zero, this would not be a problem. Following this
reasoning, it would also make sense if None was a mapping of length
zero.

--Don
______ ______
\_\_\_\ /#/#/#/
\_\_\_\ ______
\_\_\_V#/#/#/ Donald Beaudry don@vicorp.com
\_\_/#/#/#/ V. I. Corporation uunet!vicorp!don
\_/#/#/#/ 47 Pleasant Street PHONE: (413) 586-4144
V#/#/#/ Northampton, MA 01060 FAX: (413) 586-3805