by danabrams · 3y ago · 0 comments
Now, not a lot of developers are really doing this. But it's still a good reason for those who are.
Under a properly modern static typing system, you let that be inferred:
let var = cache.get("key");
var is of whatever type that the cache object returns. Even clunky old C++ can do this with auto.That author will most likely die in some statically statically typed corner he painted himself into.