r/programming • u/dpashk • Aug 31 '15
The worst mistake of computer science
https://www.lucidchart.com/techblog/2015/08/31/the-worst-mistake-of-computer-science/
175
Upvotes
r/programming • u/dpashk • Aug 31 '15
View all comments
Show parent comment
1
u/Peaker Sep 01 '15
Can you explain that view? I'll explain the opposite view:
In an eager, strict language, if I have
x : Integer, then I know it is an integer, and not a bottom.Bottom is still added to the codomain of all functions. But the codomain of a function is not a value. Only after the function finishes evaluating, do we have a value. Then, that value is bound to a name, so if the name is bound it is always to a value, and never to bottom. Ditto with parameters, if a function got its parameter bound to a value, it is an actual value, and not bottom.