| ▲ | nine_k 6 hours ago | ||||||||||||||||
Well, Typed Clojure is a thing! But the real strength of Lisp is in the macros, the metaprogramming system. And I suspect that typing most macros properly would be a bit less trivial than even typing of complex generic types, like lenses. Not typing a macro, and only typechecking the macroexpansion would formally work, but, usability-wise, could be on par with C++ template error reporting. | |||||||||||||||||
| ▲ | wrs 6 hours ago | parent [-] | ||||||||||||||||
My point was that you could implement type checking with macros, not that you could type check macros. (Though that would be cool!) As opposed to having to change the language definition first (Python) or implement an entirely new compiler (TypeScript). | |||||||||||||||||
| |||||||||||||||||