3 ms·
Type systems aren't magic. They do stop all incorrect programs from running, but also the majority of correct programs too.
by noosphr 9mo ago
Type systems aren't magic. They do stop all incorrect programs from running, but also the majority of correct programs too.
- anon291 9mo agoLuckily most everyday programs are typeable.
- noosphr 9mo agoAnd you don't need cut in logic either: https://philpapers.org/rec/BOODEC https://philpapers.org/rec/BOODEC It's just that your typeable program might take more data to store than there are bits in the universe. I'm not saying that types are bad. They aren't. I'm saying they aren't magic and they come with a trade off.
- lmm 9mo agoTypes are the closest thing to a free lunch that exists in this fallen world. Yes they're not perfect because nothing is, but their cost/benefit is astonishingly good.
- rerdavies 9mo ago... for some spectactularly inconsistent and arbitrary definition of "correct program".