Also, destructuring for pattern-matching is pretty cool.
Re:Python to OCaml: Retrospective
by krat0sprakhar on Tuesday January 26, 2016 @01:39PM
(#10975025)
It surely is. But how does Merlin help with that?
Like that: http://the-lambda-church.github.io/merlin/destruct.ogv
Really nice.
Re:Python to OCaml: Retrospective
by LeonidasXIV on Wednesday January 27, 2016 @04:02AM
(#10979027)
I used Merlin pretty extensively, yet this example had me sitting there with an open mouth, staring in awe.
The funniest thing is that in my experience Merlin just seems to work. When I think about how many hoops I need to jump through with the Clojure REPL to connect it to CIDER in Emacs, Merlin just works in the background without me having to think about it at all. Very impressive.
For someone new to the type system, it helps a lot to compulsively keep checking the types of the expressions as you go along building the program. Highly recommended.
PS: If you prefer screenshots - https://twitter.com/prakharsriv9/status/689141428161802241