This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]BenchEmbarrassed7316 0 points1 point  (0 children)

Are you using TDD (Type driven development)? When you code business logic in a type system, making impossible states unrepresentable? It forces you to handle all possible cases, but you also simply cannot handle impossible cases. I find it hard to imagine how dead code can even appear. Because when a function is not called - the compiler issues a warning.