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

"Consistent at creation" is also known in the Haskell community by the phrase "make illegal states unrepresentable".


This technique should be more widely shared. I stumbled across it years ago in Python, but it can be expressed in nearly any language.

https://en.wikipedia.org/wiki/Substructural_type_system




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

Search: