3 ms·
i rarely think of types when writing JS. where something is not obvious, like i forgot if it returned a string or object i write an error that will throw if my
by z3t4 10y ago
i rarely think of types when writing JS. where something is not obvious, like i forgot if it returned a string or object i write an error that will throw if my expectations are wrong. i call them sanity checks.
also where something is not obvious you want to rename it so it becomes obvious. so you kinda replace type annotations with better easier to understand names.
- to3m 10y agoDude.