\f
;;; Compiler type hints.
-;; These are public entry points be used in user code to give comp suggestion
-;; about types.
-;; These can be used to implement CL style 'the', 'declare' or something like.
+;; Public entry points to be used by user code to give comp
+;; suggestions about types. These are used to implement CL style
+;; `cl-the' and hopefully parameter type declaration.
;; Note: types will propagates.
;; WARNING: At speed >= 2 type checking is not performed anymore and suggestions
;; are assumed just to be true. Use with extreme caution...
(defun comp-hint-fixnum (x)
- (unless (fixnump x)
- (signal 'wrong-type-argument x)))
+ x)
(defun comp-hint-cons (x)
- (unless (consp x)
- (signal 'wrong-type-argument x)))
+ x)
\f
;; Some entry point support code.