logoalt Hacker News

tmtvllast Sunday at 7:24 PM1 replyview on HN

In Common Lisp:

  (defparameter *test-array*
    (make-array '(10 5)
                :element-type 'Float
                :initial-element 0.0))

  (typep *test-array* '(Array Float (10 5)))
And the type check will return true.

Replies

ndrlast Sunday at 9:19 PM

Compile-time checks is what's implied in virtually all these conversations.

Does that check run at compile time?

show 1 reply