News for hackers. Stuff that matters.
Re:Moving Beyond Type Systems by kibwen on Friday May 31, 2024 @11:55PM (#40542749)
> No.

This isn't quite correct, as demonstrated by the example of C++, because the act of turning a function that never halts (i.e. a function that is guaranteed to diverge) into a function that might halt is an observable effect. Rust actually relies on the fact that infinite loops are infinite, and they had to submit patches to LLVM to make it possible for languages to opt out of C++-style semantics: https://github.com/rust-lang/rust/issues/28728

There are no comments on this comment yet.