But couldn't the type system guarantee a sufficent subset of all the possible interactions with the api?
Like, you can't determine the halting problem for a turing complete language, but you can for s more restricted language.
Like, you can't determine the halting problem for a turing complete language, but you can for s more restricted language.