|
|
|
|
|
by nickbauman
3499 days ago
|
|
For me the problem with Haskel (and, by extension, Swift) is the syntax is very complicated. The example above is better taught through a functional language that has almost no syntax like a Lisp. (filter (fn[p] (p :valid?))
(map (fn[n] (Person n) names))
|
|
And incidentally, this would probably be something like (EDIT: made example more realistic):
in Haskell. Which looks much cleaner than the lisp to me.