r/rust • u/small_kimono • Aug 29 '24
One Of The Rust Linux Kernel Maintainers Steps Down - Cites "Nontechnical Nonsense"
https://www.phoronix.com/news/Rust-Linux-Maintainer-Step-Down
586
Upvotes
r/rust • u/small_kimono • Aug 29 '24
3
u/looneysquash Aug 29 '24
(Still haven't been able to watch the whole thing, so might not what what I'm talking about)
Result<Either<ARef<INode<T>>, inode::New<T>>>is a pretty complicated type.I'm not sure how to fix it. But like, for a return type, you'd say
struct Foo, notstruct { type1 field1, type2 field2, etc... }. This feels more like the latter, where too many details are present.You could use a type alias, but I'm not sure if that's a good idea here or not, because a type alias would make it less obvious how to use
match/ destructuring with this.