|
|
|
|
|
by pjc50
3522 days ago
|
|
Types are not for efficiency of programmer or machine, they're for correctness. They're a form of test that can be run statically on the program. And unlike tests, they potentially offer a proof that some kinds of error cannot occur. Without types you end up with a different sort of monstrosity - the corner cases that you get when comparing ints to strings in Javascript, for example. |
|