4 ms·
You can always describe what has been done with the string by boxing it into an expressive type. Your other example is that when dealing with bad external code
by kungito 6y ago
You can always describe what has been done with the string by boxing it into an expressive type. Your other example is that when dealing with bad external code you need to do additional checks. That's a specific scenario and every language which exists has to deal with it in the same way. In more powerful languages you could infer which checks need to be done from the type and do the automatically for external code