▲ | 7h3kk1d 2 days ago | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
""Make illegal states unrepresentable" is way too expensive to implement." This has not been my experience. The speed increase in development not having to worry about the unrepresentable cases have been very valuable. In addition as requirements change migrating old data hasn't been a huge concern. For code changes refactoring the types helps address new cases as well. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
▲ | ffsm8 2 days ago | parent [-] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The difficulty of Making illegal state unrepresentable depends entirely on the domain you're working on. And whether discarding the occasional invalid transaction is viable. If you're writing a CMS/wiki software, it's gonna be pretty straightforward to do. If you're working with transactions, trades, contracts etc, it's not. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|