Re:State of Multicore OCaml [pdf]
by HumanDrivenDev on Thursday June 28, 2018 @05:26PM
(#17420614)
In my career I started off with OO/imperative, then got heavily into functional programming. I came out at the other end strongly preferring immutable objects over struct+procedure function programming. It's a style I consider deeply OO, and still has referential transparency, but which usually gets ignored in these discussions.
[ Parent
| on HN ]
Re:State of Multicore OCaml [pdf]
by arwhatever on Thursday June 28, 2018 @07:58PM
(#17421435)
May I ask for what reason? My guess: encapsulation and/or data hiding? That's the biggest thing I miss when doing FP.
Re:State of Multicore OCaml [pdf]
by HumanDrivenDev on Thursday June 28, 2018 @08:22PM
(#17421520)
I find it to be cleaner than having module M with struct t and functions M.create: () -> t, M.doStuff: t -> 'a. Which is what tends to happen. It just looks like immutable objects for slow learners...