Re:Python to OCaml: Retrospective
by krat0sprakhar on Tuesday January 26, 2016 @09:03AM
(#10973393)
Merlin for Vim is an absolute delight to use. You get auto-complete, indentation, compile-on-save, type checking right within your editor with less than 5 lines of configuration.
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
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.
Yes, you can have a look at merlin: https://github.com/the-lambda-church/merlin
Better tooling would help so that you'd get the error checking as you type. Are there any good configurations for vim or Emacs, for example?