3 ms·
And on layer 10 you missed that you were using and treating the argument as if it were the double. Now you have a bug that the type system would have solved. Or
by toastal 7y ago
And on layer 10 you missed that you were using and treating the argument as if it were the double. Now you have a bug that the type system would have solved. Or you can alias that input early if you know with a good certainty it has possiblity to change, and now you just update the alias and everything gets checked all the way down without a refractor.
- k__ 7y agoAFAIK, the problem here isn't "bad static typing" but "bad type inference" If you only have to write the type once at the top of the 10 layer, you don't have to do much to change it.