Hacker News new | ask | show | jobs
by archarios 2159 days ago
You could do the same process if you used dynamic typing and good test coverage. Just make your change and keep fixing tests until everything is green.
2 comments

But how could you have written tests against that new enum value if it didn't exist before? You would need to know in advance which places needed to be tested for it.
Then you essentially are implementing a type checker in your tests, but worse