Is ! verified or enforced; i.e. does the compiler check to make sure that the functions does terminate in some way (besides returning) ?
This is of course a conservative analysis so e.g. "while true { }" is assumed to terminate and is rejected.
Failing to perform this verification correctly would trivially lead to memory unsafety as calling code is allowed to assume such a function returns any and all requested types.
[0] http://os.phil-opp.com/better-exception-messages.html#intrin...
Interesting, I think Haskell does sort of have a value for it, undefined. It's just that if you look at that value too hard, it throws. :)