Hacker News new | ask | show | jobs
by miunau 699 days ago
Just use `any` or `unknown` when prototyping, then apply types once your happy paths start working for the first time to start catching the unhappy ones.
1 comments

>then apply types once your happy paths start working for the first time to start catching the unhappy ones.

I.e. the "I'll go back and add safety later" strategy. Somehow I never seem to get around to doing it.

Like documentation, you should do this while it's fresh in your head, but I get it.