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

> Almost all bugs are logic bugs or inconsistent state bugs (thanks OOP!), almost none are type bugs.

The whole point of using types is making inconsistent states type bugs. Types are logic.

This article presents a great example: https://fsharpforfunandprofit.com/posts/designing-for-correc...



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

Search: