News for hackers. Stuff that matters.
Re:Rust will likely not support tail call optimization by anonymoushn on Wednesday April 10, 2013 @03:17PM (#5527400)
That's correct. It should be possible to have an explicit guarantee of TCO while maintaining the ability to write things that aren't trivially reducible to loops...
Re:Rust will likely not support tail call optimization by nicolast on Wednesday April 10, 2013 @03:33PM (#5527512)
Which is +- what Scala allows with an annotation.
Re:Rust will likely not support tail call optimization by fhars on Wednesday April 10, 2013 @04:33PM (#5527956)
No, scala's @tailrec annotation only guarantees that calls that can trivially be compiled to loops in fact are. You can't do better on a standard JVM without jumping through hoops (or, rather, trampolines).