Re:How do I modify a variable in Haskell?
by norea-armozel on Tuesday August 15, 2017 @08:59AM
(#15017751)
I always suggest people to learn Common Lisp or OCaml since they're easier to get into (OCaml is the easiest imo) if you want to get your head around the basic ideas of functional programming.
[ Parent
| on HN ]
Re:How do I modify a variable in Haskell?
by yawaramin on Wednesday August 16, 2017 @10:15AM
(#15027607)
I recommend something similar ... Prof. Dan Grossman's Programming Languages course in Coursera, taught using Standard ML: https://www.coursera.org/learn/programming-languages
He starts by teaching statically typed functional programming with an emphasis on understanding semantics and idioms; then in the following modules he covers Racket and Ruby to compare and contrast dynamically typed homoiconic programming and object-oriented programming.
Re:How do I modify a variable in Haskell?
by pmarreck on Tuesday August 15, 2017 @12:31PM
(#15019718)
I've had a ball with Elixir as my first functional lang, FWIW.
Took a few seconds to bang out an immutable solution to the original problem: https://news.ycombinator.com/item?id=15019685
Of course, there's no mutation in Elixir (or the BEAM VM)... At all.
Re:How do I modify a variable in Haskell?
by marvel_boy on Tuesday August 15, 2017 @09:55AM
(#15018166)
Do you recommend F#?
Re:How do I modify a variable in Haskell?
by flavio81 on Tuesday August 15, 2017 @10:19AM
(#15018386)
F# is a ML familt language so it should go well with the "ocaml" recommendation.
Another vote for Common Lisp here. You can do functional programming but you can also "step outside" and do OOP, imperative (and other paradigms) if you need.