logoalt Hacker News

bjolitoday at 5:43 PM1 replyview on HN

Finally! Tail calls! I had to write rust some years ago, and the ocaml person in me itched to get to write tail recursion.

Tail recursion opens up for people to write really really neat looping facilities using macros.


Replies

iknowstufftoday at 6:23 PM

Rust has the become keyword now I believe for TCO.

https://doc.rust-lang.org/std/keyword.become.html

show 2 replies