Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Encapsulation can be done even in Haskell which avoids mutable state by using modules that don't export their internals, smart constructors etc. instead. You can e.g. encapsulate the logic for dealing with redis in a module and never expose the underlying connection logic to the rest of the codebase.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: