2 ms·
> Algebraic types are supported out of the box... Pretty sure that's not true since you can't define recursive types. For example, the following is invalid (
by aidenn0 5y ago
> Algebraic types are supported out of the box...
Pretty sure that's not true since you can't define recursive types. For example, the following is invalid (in fact there is no way in the CL type system to define a type that represents a proper list of a given element type without using SATISFIES):
(deftype proper-list (&optional (element-type t))
`(or null (cons ,element-type proper-list)))
More details about this issue from when it came up during the standardization process:
https://www.cs.cmu.edu/Groups/AI/html/hyperspec/HyperSpec/Issues/iss291-writeup.html https://www.cs.cmu.edu/Groups/AI/html/hyperspec/HyperSpec/Is...