Re:Lisp Hackers: Marijn Haverbeke
by marijn on Tuesday April 03, 2012 @03:47AM
(#3791958)
As far as I know, no. You can get SBCL to point out some intra-function inconsistencies through declarations (or, in fact, often even without declarations), but I haven't found a way to make it warn when, outside of function X, I'm calling it with types different from the types associated with the arguments through declarations.
[ Parent
| on HN ]
(declaim (safety 3) (ftype (function ({argument types}) {return types}) {function name}))
It checks both at compile time and at run time. I find it great for bug squashing. See http://www.sbcl.org/manual/index.html#Declarations-as-Assert...