96 lines
4.4 KiB
HTML
96 lines
4.4 KiB
HTML
|
<!-- Common Lisp HyperSpec (TM), version 7.0 generated by Kent M. Pitman on Mon, 11-Apr-2005 2:31am EDT -->
|
||
|
<HTML>
|
||
|
<HEAD>
|
||
|
<TITLE>CLHS: Issue COMMON-TYPE Writeup</TITLE>
|
||
|
<LINK HREF="../Data/clhs.css" REL="stylesheet" TYPE="text/css" />
|
||
|
<META HTTP-EQUIV="Author" CONTENT="Kent M. Pitman">
|
||
|
<META HTTP-EQUIV="Organization" CONTENT="LispWorks Ltd.">
|
||
|
<LINK REL=TOP HREF="../Front/index.htm">
|
||
|
<LINK REL=COPYRIGHT HREF="../Front/Help.htm#Legal">
|
||
|
<LINK REL=DISCLAIMER HREF="../Front/Help.htm#Disclaimer">
|
||
|
<LINK REL=PREV HREF="../Issues/iss056_w.htm">
|
||
|
<LINK REL=UP HREF="../Issues/iss057.htm">
|
||
|
<LINK REL=NEXT HREF="../Issues/iss058_w.htm">
|
||
|
</HEAD>
|
||
|
<BODY>
|
||
|
<H1><A REV=MADE HREF="http://www.lispworks.com/"><IMG WIDTH=80 HEIGHT=65 ALT="[LISPWORKS]" SRC="../Graphics/LWSmall.gif" ALIGN=Bottom></A><A REL=TOP HREF="../Front/index.htm"><IMG WIDTH=237 HEIGHT=65 ALT="[Common Lisp HyperSpec (TM)]" SRC="../Graphics/CLHS_Sm.gif" ALIGN=Bottom></A> <A REL=PREV HREF="../Issues/iss056_w.htm"><IMG WIDTH=40 HEIGHT=40 ALT="[Previous]" SRC="../Graphics/Prev.gif" ALIGN=Bottom></A><A REL=UP HREF="../Issues/iss057.htm"><IMG WIDTH=40 HEIGHT=40 ALT="[Up]" SRC="../Graphics/Up.gif" ALIGN=Bottom></A><A REL=NEXT HREF="../Issues/iss058_w.htm"><IMG WIDTH=40 HEIGHT=40 ALT="[Next]" SRC="../Graphics/Next.gif" ALIGN=Bottom></A></H1>
|
||
|
|
||
|
<HR>
|
||
|
|
||
|
|
||
|
|
||
|
<H2>Issue COMMON-TYPE Writeup</H2>
|
||
|
|
||
|
<PRE><B>Issue:</B> <A HREF="iss057.htm">COMMON-TYPE</A><P>
|
||
|
<P>
|
||
|
<B>References:</B> CLtL p.35, p.76<P>
|
||
|
<P>
|
||
|
<B>Category:</B> CHANGE<P>
|
||
|
<P>
|
||
|
<B>Edit history:</B> Version 1, 20-Mar-89, by Moon<P>
|
||
|
<P>
|
||
|
<B>Problem description:<P>
|
||
|
</B> <P>
|
||
|
The type COMMON is defined in a very peculiar way and does not seem to<P>
|
||
|
be useful for anything. It can be extended by users using <A REL=DEFINITION HREF="../Body/m_defstr.htm#defstruct"><B>DEFSTRUCT</B></A>,<P>
|
||
|
but not <A REL=DEFINITION HREF="../Body/m_deftp.htm#deftype"><B>DEFTYPE</B></A> nor <A REL=DEFINITION HREF="../Body/m_defcla.htm#defclass"><B>DEFCLASS</B></A>, but it cannot be extended by implementations.<P>
|
||
|
Whether certain types such as <A REL=DEFINITION HREF="../Body/t_number.htm#number"><B>NUMBER</B></A> and <A REL=DEFINITION HREF="../Body/t_array.htm#array"><B>ARRAY</B></A> are subtypes of COMMON<P>
|
||
|
is implementation-dependent. The goal of having the COMMON type was<P>
|
||
|
probably to improve portability, but it is unclear how it could actually<P>
|
||
|
be used in that way.<P>
|
||
|
<P>
|
||
|
<B>Proposal (COMMON-TYPE:REMOVE):<P>
|
||
|
</B><P>
|
||
|
Remove COMMON and COMMONP from the language.<P>
|
||
|
<P>
|
||
|
<B>Rationale:<P>
|
||
|
</B> <P>
|
||
|
Keeping the definition of COMMON accurate in the new specification, in<P>
|
||
|
the face of changes elsewhere in the language such as the introduction<P>
|
||
|
of CLOS and the possible introduction of character registries, is<P>
|
||
|
difficult when no one is sure what COMMON is for. If no one uses COMMON,<P>
|
||
|
it would be less work to just get rid of it.<P>
|
||
|
<P>
|
||
|
<B>Current practice:<P>
|
||
|
</B> <P>
|
||
|
Every implementation probably implements COMMON. Moon has never seen it<P>
|
||
|
used except in a program to test whether its implementation matched CLtL.<P>
|
||
|
<P>
|
||
|
<B>Cost to Implementors:<P>
|
||
|
</B><P>
|
||
|
None.<P>
|
||
|
<P>
|
||
|
<B>Cost to Users:<P>
|
||
|
</B><P>
|
||
|
None unless they are actually using COMMON.<P>
|
||
|
<P>
|
||
|
<B>Cost of non-adoption:<P>
|
||
|
</B> <P>
|
||
|
Implementors would have to maintain COMMON. Users would have to try to<P>
|
||
|
understand it, or figure out that they didn't care about it.<P>
|
||
|
<P>
|
||
|
<B>Performance impact:<P>
|
||
|
</B><P>
|
||
|
None.<P>
|
||
|
<P>
|
||
|
<B>Benefits:<P>
|
||
|
</B><P>
|
||
|
Simpler language.<P>
|
||
|
<P>
|
||
|
<B>Esthetics:<P>
|
||
|
</B><P>
|
||
|
Simpler language.<P>
|
||
|
<P>
|
||
|
<B>Discussion:<P>
|
||
|
</B><P>
|
||
|
None.<P>
|
||
|
<P>
|
||
|
</PRE>
|
||
|
<HR>
|
||
|
|
||
|
<A REL=NAVIGATOR HREF="../Front/StartPts.htm"><IMG WIDTH=80 HEIGHT=40 ALT="[Starting Points]" SRC="../Graphics/StartPts.gif" ALIGN=Bottom></A><A REL=TOC HREF="../Front/Contents.htm"><IMG WIDTH=80 HEIGHT=40 ALT="[Contents]" SRC="../Graphics/Contents.gif" ALIGN=Bottom></A><A REL=INDEX HREF="../Front/X_Master.htm"><IMG WIDTH=80 HEIGHT=40 ALT="[Index]" SRC="../Graphics/Index.gif" ALIGN=Bottom></A><A REL=INDEX HREF="../Front/X_Symbol.htm"><IMG WIDTH=80 HEIGHT=40 ALT="[Symbols]" SRC="../Graphics/Symbols.gif" ALIGN=Bottom></A><A REL=GLOSSARY HREF="../Body/26_a.htm"><IMG WIDTH=80 HEIGHT=40 ALT="[Glossary]" SRC="../Graphics/Glossary.gif" ALIGN=Bottom></A><A HREF="../Front/X3J13Iss.htm"><IMG WIDTH=80 HEIGHT=40 ALT="[Issues]" SRC="../Graphics/Issues.gif" ALIGN=Bottom></A><BR>
|
||
|
|
||
|
<A REL=COPYRIGHT HREF="../Front/Help.htm#Legal"><I>Copyright 1996-2005, LispWorks Ltd. All rights reserved.</I></A><P>
|
||
|
</BODY>
|
||
|
</HTML>
|