Re:Imperative vs Functional Programming
by gaius on Tuesday May 31, 2011 @12:21PM
(#2603185)
OCaml. You can get "real work" done by dropping back to familiar imperative constructs when necessary, yet you still have an excellent functional language at your disposal. Eventually you will go more and more FP as you become more comfortable, e.g. you can use a for loop if you want, but pretty soon you'll be more comfortable with a map and it will come naturally. Or you can use an if.. else construct until you are happy with match...with.
I personally treat OCaml as a type-safe Python or Tcl, you can work very productively with it.
I personally treat OCaml as a type-safe Python or Tcl, you can work very productively with it.