5 ms·
That isn't the problem. This is the issue: let x = str.parse()?; someFunc(x); The function called here is dependent on what `someFunc` will accept. Tha
by ayende 5y ago
That isn't the problem.
This is the issue:
let x = str.parse()?;
someFunc(x);
The function called here is dependent on what `someFunc` will accept.
That means that I can change what values will be accepted here by changing a completely different piece of code.
- ReleaseCandidat 5y agoOnly if you think of other code in the same function as 'a completely different piece of code'. With global type inference, the whole program is inferred for example.