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

Re: Issue: SUBTYPEP-EMPTY-NIL (Version 1)



The NIL T proposal isn't adequate as currently presented.  If an empty
numeric range or member type isn't equivalent to NIL, what is it equivalent
to.  Is (integer (0) (0)) == (float (0.0) (0.0))?  Is an empty member type
equivalent to an empty numeric type?

If these types are placed somewhere in the hierarchy other than at the
bottom, then we must say where.  Presumably each of these new empty types
is a lower bound on some existing collection of types, and we need to say
which.

I am personally in favor of making all of these types == NIL, since it
seems simpler.  This seems also to be more compatible with the "types
are sets" view stated in CLtL.  All type specifiers that designate the
empty set should be equivalent.

I think that your example is pretty contrived.  Regardless of the type
system, the compiler can't do much with type specifiers that are
constructed at load time.  The right way to do this would be with a
DEFTYPE, which could be expanded at compile time.

  Rob