[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Issue: LIST-TYPE-SPECIFIER (Version 1)
- To: Eric Benson <eb@lucid.com>
- Subject: Re: Issue: LIST-TYPE-SPECIFIER (Version 1)
- From: Rob.MacLachlan@WB1.CS.CMU.EDU
- Date: Sun, 18 Sep 88 11:09:11 EDT
- Cc: masinter.pa@Xerox.COM, BECKERLE@XX.LCS.MIT.EDU, cl-cleanup@sail.stanford.edu
- In-reply-to: Your message of Sat, 17 Sep 88 16:44:31 -0700. <8809172344.AA00896@blacksox>
I agree that it makes sense for a specialized LIST type specifier to be
analogous to ARRAY type specifiers. But this would imply a dramatically
different semantics for LIST type discrimination than the one suggested in
the original proposal.
With array types, only the specalized types chosen by the implementation
are distinct. TYPEP cannot distinguish (on the basis of element type)
between two arrays that were made with different types, but that specialize
to the same type. If (as is probably the case) there is only one
specialized list type, then lists cannot be discriminated at all.
But (if you choose the right array type cleanup) specialized list types
would be useful for declaration, since an implementation *might* have
arbitrary specialized list types:
(typep (elt (the (list number) foo) 3) 'number) <=> T
Rob