3 ms·
It's supposed to break when your assumptions break. That's the whole point.
by jayd16 1y ago
It's supposed to break when your assumptions break. That's the whole point.
- newAccount2025 1y agoThis! There is a real joy in being able to make the fundamental change to the structure, then letting your compiler show you the places in the code base that need to be updated. The alternative is hoping you are thorough enough to spot it all yourself. Maybe you’re that good but I’m sure not.
- paulddraper 1y agoCould you imagine if it didn’t? lol
- nlawalker 1y agoThe author doesn’t refute that, their point is that it’s not all upside. There’s a cost to “making illegal states unrepresentable” that’s often omitted from advocacy of the technique, and in some contexts that cost can outweigh the benefits.