27 ms·
> You can do the same things as in Lisp, with type checking Can't easily do even simple things like variable argument functions, or polymorphic lists (required
by kazinator 10y ago
> You can do the same things as in Lisp, with type checking
Can't easily do even simple things like variable argument functions, or polymorphic lists (required for representing source code for macro programming).
Lisp has loops, variable assignment, stateful objects of various types and so on. Also, strict evaluation for straightforward, deterministic sequencing.
- js8 10y agoI only touched that point but as I said - I used to think the same, but then I actually studied it and changed my mind. You can do all that in Haskell too, including interpreting homoiconic code and build DSLs (which was my main point), and it's all built on the more solid foundations with integrated static type checking. It just works quite differently.
- kazinator 10y agoI didn't mean to imply that Haskell isn't Turing complete, of course.
- js8 10y agoIt's not about that. Haskell has tools to do all that, and they are better. You can write imperatively in Haskell, you can write strictly or lazily in Haskell, you can have dynamic types in Haskell. There is actually more choice. However, one (unfortunately) needs to study it to see it. I like Lisp, but curiously enough, it has its limits too.