3 ms·
May I ask for what reason? My guess: encapsulation and/or data hiding? That's the biggest thing I miss when doing FP.
by arwhatever 8y ago
May I ask for what reason? My guess: encapsulation and/or data hiding? That's the biggest thing I miss when doing FP.
- HumanDrivenDev 8y agoI 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...