logoalt Hacker News

wrslast Sunday at 6:30 PM2 repliesview on HN

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.


Replies

nine_klast Sunday at 7:44 PM

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.

show 1 reply
teaearlgraycoldlast Sunday at 6:53 PM

That means little to a programmer unless they really want to spend thousands of hours building a type checker before starting a project.

show 1 reply