News for hackers. Stuff that matters.
Re:Programming in Rust: the good, the bad, the ugly by andrenth on Tuesday March 12, 2019 @11:53PM (#19375573)
Well let’s say you read command line args into a Vec<String> and then you want to use each in some Foo struct, but you want to avoid clones, so you make the field a &str. Now your Foo must become Foo<‘a> everywhere.

I understand the guarantees, it’s just the syntactic overhead that annoys me.

There are no comments on this comment yet.