2 ms·
> Common Lisp is strongly typed, it's just that types follow values rather than bindings. Then they're not types. Types go on terms, i.e. expressions, not on v
by lmm 3y ago
> Common Lisp is strongly typed, it's just that types follow values rather than bindings.
Then they're not types. Types go on terms, i.e. expressions, not on values.
> This presents some code generation challenges, but it will warn on correctness just fine.
Warn on correctness it may, but it's simply impossible for a setup like that to reliably error on incorrectness at compile time; a Turing-complete language like Common Lisp cannot determine any nontrivial property of expressions (in a way that works in all cases) without evaluating them. If your types go with your values then you can't check your types without evaluating your values, at which point compile time is long gone.
- fulafel 3y agoThey have been called types (and type errors, etc) for ages in dynamic languages, it's estabilished terminology.