3 ms·
My main issue was when making code modifications. If I wanted to add an argument to a function I would have to find and fix tens of calls to that function in or
by bno1 6y ago
My main issue was when making code modifications. If I wanted to add an argument to a function I would have to find and fix tens of calls to that function in order to convince the compiler to infer the type that I wanted so I could use its error messages to find and fix the rest of the calls. In hindsight, I should've written annotations by hand for functions I had to modify.
- yawaramin 6y agoIndeed, if you have an interface file which contains the function's type, you'll only need to change that one point to get all consuming modules to see the correct type.