
10 Jan
2008
10 Jan
'08
4:23 a.m.
Cristian Baboi wrote:
and there is no such thing as "the same bottom" right ?
Yes and no. Semantically, every bottom is the same. However, the Haskell Report makes bottom an explicit exceptional case. Compilers are allowed to do whatever they want with bottoms, including different results for different bottoms. There isn't any choice, really. In order to behave the same for every bottom, you would first have to solve the Halting Problem. Or hang forever on every bottom, which I don't think you would want. Regards, Yitz