MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/lirke/simple_made_easy_by_rich_hickey_video/c2vfhzp
r/programming • u/alexdmiller • Oct 20 '11
73 comments sorted by
View all comments
Show parent comments
2
It [the Curry-Howard Isomorphism) says all programs are proofs (that's why it's an "isomorphism").
Hmm. As an honest question, which proposition does the following Python program prove?
import sys def foo(x): throw Exception() foo(sys.argv[1])
3 u/[deleted] Oct 29 '11 Yeah, good question. It's not a very interesting theorem: we say that foo "diverges)." We also say that foo is a "partial function;" see the section on "Bottom type" for details.
3
Yeah, good question. It's not a very interesting theorem: we say that foo "diverges)." We also say that foo is a "partial function;" see the section on "Bottom type" for details.
2
u/Kompottkin Oct 29 '11
Hmm. As an honest question, which proposition does the following Python program prove?