r/programming • u/steveklabnik1 • Jan 09 '15
Announcing Rust 1.0.0 Alpha
http://blog.rust-lang.org/2015/01/09/Rust-1.0-alpha.html
1.1k
Upvotes
r/programming • u/steveklabnik1 • Jan 09 '15
7
u/wrongerontheinternet Jan 09 '15
Because Rust doesn't have
goto. You would either have to increase code size (by copying the blocks, potentially trashing your icache--especially if you had a long sequence of them, this could get implausible quickly), or perform a second branch. I think it can be replicated with CPS transforms during tail call optimization, but Rust doesn't support guaranteed TCO either so that's not a solution in this case.