Re:Rust will likely not support tail call optimization
by steveklabnik on Wednesday April 10, 2013 @05:21PM
(#5528273)
From a certain perspective, yes. You're confusing the tool with its purpose.
[ Parent
| on HN ]
Re:Rust will likely not support tail call optimization
by Rickasaurus on Wednesday April 10, 2013 @06:23PM
(#5528610)
What do you mean? Combinators are great (even if implemented imperatively) until you really care about performance and isn't that what this rust discussion is all about.
Did you mean something other than combinators?
Re:Rust will likely not support tail call optimization
by steveklabnik on Wednesday April 10, 2013 @09:19PM
(#5529338)
I mean that 'safety' means a wide variety of things, and you're conflating the PLT feature with the more general reason why that feature was needed.
For example, above, you mention how TCO lets you use first-class functions to help you eliminate mutability. It's the elimination of mutability that's the safety here. Rust allows you to eliminate mutability through other means.