Re:The Bastion of the Turbofish
by fransiscoli on Thursday January 07, 2021 @06:42PM
(#25679273)
I think lifetimes are the part of Rust that people see as ugly. I recently wrote the following lines of code:
and the equivalent code in Scala:
of course, those programs are not semantically equivalent, but you can clearly see that the Scala version is the more elegant of the two. I can't think of any other way that you could syntactically express lifetimes, but I can see why people would see Rust as ugly.
[ Parent
| on HN ]