LISP or Haskell

LISP or Haskell, I need to learn functional programming, but I heard that lisp is very old, any advice between these two languages?

+4
source share
5 answers

Haskell, because once you learn Haskell, you'll like it. And then you can learn Common LISP. However, if your editor is Emacs, then start with LISP.

+2
source

To repeat others, I would study both Scheme (the more functional Lisp dialect) and Haskell. The / Lisp scheme has some useful tricks to teach you that "code is data / data is code" and macros. The circuit encourages a good functional style, and I would recommend the series of books "The Little Schemer" to get you started. SICP is also a fantastic text http://mitpress.mit.edu/sicp/full-text/book/book.html and possibly one of the best programming books ever written. The outline is more accessible as the first functional language.

As soon as you have a Scheme scheme, you are likely to come across a lack of libraries, a lack of parallelism, and a small, albeit excellent community. That's where I was when I decided to learn Haskell. Haskell is very mature, very useful and very functional, and quite difficult to learn as soon as you get away from the basics, and therefore using grounding in another functional language will help a lot. You will not regret learning (or both).

+13
source

Why not? LISP is very easy to learn (I would go to the Schema dialogs - see http://racket-lang.org ), so I would start with this. If you like it, stick with it, but I will also give Haskell, although (in my experience) it is much more difficult for me to wrap my head.

The great thing about today's computing is that you can try all of these languages ​​for free, except for your time. When I started programming LISP, it was only available on mainframes, which made it a little difficult to learn.

+5
source

If you want to learn functional programming through the implementation of a compiler or interpreter, then Lisp or ML should be a better choice, since they are much easier to implement than a lazy language. Otherwise, you better learn both.

+1
source

The choice by age is stupid, Haskell has been around a lot longer than C #, and its history has expanded even further. In any case, I would recommend to study both in the end, and for learning functional programming, Haskell is specially devoted to purely functional programming (in a number of senses). A schema is a functionally oriented descendant of lisp.

0
source

Source: https://habr.com/ru/post/1332335/


All Articles