Re:Rust will likely not support tail call optimization
by bcoates on Wednesday April 10, 2013 @09:51PM
(#5529440)
Both of those programs are playing with C's infamously broad undefined behavior rules, the first for a non-terminating loop and the second for using too much stack (when called with a sufficiently large number). -O2 being nice to you is a coincidence, not something you should rely on.
In a language which prefers diagnosing programmer error over punting both should be errors.
In a language which prefers diagnosing programmer error over punting both should be errors.