Re:Announcing TypeScript 2.0
by spion on Saturday September 24, 2016 @01:54PM
(#12571846)
> Its not enough to know a function accepts ints; I want to know its range as well.
Types actually help with this too. Instead of changing the possible range of a thing, change its name too: the compiler will quickly let you know of all the places that depend on it. Now you know what to check.
Types actually help with this too. Instead of changing the possible range of a thing, change its name too: the compiler will quickly let you know of all the places that depend on it. Now you know what to check.