Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
arwhatever
· 8y ago · 0 comments
May I ask for what reason? My guess: encapsulation and/or data hiding? That's the biggest thing I miss when doing FP.
Comments
[–]
HumanDrivenDev
8y ago
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...