Login
Remember
Register
Ask a Question
Does Rust guarantee tail-call optimization?
0
votes
asked
Dec 28, 2023
in
Rust
by
Robin
Does Rust guarantee tail-call optimization?
tail-calloptimization
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Dec 28, 2023
by
Robin
No, Rust doesn’t guarantee TOC (Tail Call Optimization). Not even the standard library is required to compile the rust code. In these cases, the run time is similar to that of C programming language.
...