| ▲ | ndr 4 days ago | |||||||||||||||||||||||||
Compile-time checks is what's implied in virtually all these conversations. Does that check run at compile time? | ||||||||||||||||||||||||||
| ▲ | tmtvl 4 days ago | parent [-] | |||||||||||||||||||||||||
If I define a function foo which takes an (Array Float (10 5)) and then define a function bar which uses the result of calling foo with an (Array String (3 3)) then SBCL will print a warning. If I don't redefine foo and call bar with such an array then a condition will be raised. It's not quite the same as, say Rust's 'thing just won't compile', but that's due to the interactive nature of Common Lisp (I believe someone called it the difference between a living language and a dead language (though the conventional meaning of living language and dead language in programming is a bit different)). | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||