Better HN
topnewbestaskshowjobs
Log inSign up

capicue

2 karma · joined Feb 10, 2010 (16y ago) · 2 submissions

Submissions

comment 11y ago · link · parent

From a theoretical perspective, preventing infinite loops is in a very deep sense the most basic possible thing you can do with static types! The simply-typed lambda calculus, on which all other type systems are based, proves that programs terminate in a finite amount of time.

Is this not claiming that static typing (and/or lambda calculus) solves the halting problem?

comment 12y ago · link · parent

But it requires eval-ing a string literal instead of actually having g()("al") as an expression itself