3 ms·
> The developers of the library would immediately spot that their call does a lot more than it was ever supposed to locally but the point was that if the featu
by chii 5y ago
> The developers of the library would immediately spot that their call does a lot more than it was ever supposed to locally
but the point was that if the feature is intentionally developed, then the type signatures would reflect it - it doesn't do "a lot more than it was ever supposed to".
Type systems don't tell you that a logging library shouldn't access the network. It just tells you that it does, and if this feature was intentional, then how would the type system flag it differently from a cURL-like library that writes to disk with data from the network?