Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
grumpyprole
· 4y ago · 0 comments
Such a function can still be pure on the outside. This is real (state) encapsulation, not the encapsulation sold to you by OOP vendors.
Comments
[–]
germandiago
4y ago
Ok but there was discussion about Haskell so I was sticking to that... of course if you can have functional as an extra without preventing imperative in the low level then you can apply the best of both worlds.
[–]
grumpyprole
OP
4y ago
Haskell let's one write fast imperative code when needed or call C functions.