| ▲ | wrs 7 hours ago | |||||||||||||||||||||||||
On the other hand, it would be easier to add type checking to a Lisp than it was to Python or JavaScript, and I don’t know any technical reason you couldn’t. A little Googling shows it’s been experimented with several times. | ||||||||||||||||||||||||||
| ▲ | nine_k 6 hours ago | parent | next [-] | |||||||||||||||||||||||||
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. | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||
| ▲ | teaearlgraycold 7 hours ago | parent | prev [-] | |||||||||||||||||||||||||
That means little to a programmer unless they really want to spend thousands of hours building a type checker before starting a project. | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||