|
|
|
|
|
by Manishearth
2265 days ago
|
|
Not really going to address the rest of the post but I wanted to point out that `impl Trait` hasn't really changed what's idiomatic. People still use generics in argument position, and while I've seen a couple instances of people using impl Trait in argument position it's not enough to call it an idiom shift. impl Trait in return position has changed how people code; but that's because it made certain things suddenly possible, which isn't an idiom change as much as obsoleting some old bad workarounds. I'm curious to know why you felt like you had to change your code to be more idiomatic with impl Trait. ---- Nor does it seem like Ok wrapping is the kind of feature that would change what idiomatic Rust is. |
|