by buzzin__ · 4mo ago · 0 comments
How in the world does the halting problem enters into the picture if my program is bug free or not?
I'm all in favour of sidestepping the argument by having our languages more resemble System F or some polymorphic lambda calculus.
You have to include a construct that introduces general recursion to make it Turing complete.
There's a cool practical space within those constraints that needs more exploration.
Non-total functions can call total functions, but not vice-versa.
Imagine a web server whose main loop is non-total, because you want it to stay up. But each route is total, to guarantee termination.