3 ms·
Cute. Smalltalk and LISP are terrible too huh?
by errantspark 10y ago
Cute. Smalltalk and LISP are terrible too huh?
- to3m 10y agoLisp is marginally better, because it tries less hard to work around type mismatches (so something like (+ 1 "") is an error). But it suffers from the same fundamental problem: no type checks until runtime. It's fine to have some kind of option for data whose type isn't known until runtime. This stuff happens, and languages that insist there's no such thing make dealing with it more difficult. But this is the rarer case! Why optimise for it rather than for the more common one?
- kazinator 10y agoWhat Lisp are you developing with? Mature "industrial strength" Lisp compilers do perform type checks prior to run time. Dynamic typing isn't optimization; dynamic typing without any static analysis is the utter lack of optimization.