3 ms·
What do you mean by "safe" in this context?
by EE84M3i 11mo ago
What do you mean by "safe" in this context?
- skydhash 11mo agoIf you type correctly at border of your system, then TS will be very close to a formal verification of your code. This won't catch all bugs, but even broad categories for you data is helpful. If you know your input is a non-null string. Then it will warn you of every non string usage. It won't catch whether it's a name or an email, but knowing someone tries to divide it by zero is helpful.
- regular_trash 11mo agoIt's a lot more effort, but branded types for conceptual differences can bridge that last gap