News for hackers. Stuff that matters.
Re:Rust: Enums to Wrap Multiple Errors by dljsjr on Friday October 08, 2021 @01:32PM (#28801779)
I used the wrong wording: They have 15-20 *enum variants* per enum definition. Or more. I worked with a project that had close to 30-something enum variants.

That’s just… wildly annoying to deal with IMO.

Re:Rust: Enums to Wrap Multiple Errors by catlifeonmars on Friday October 08, 2021 @05:54PM (#28804572)
That sounds like a different design issue. Errors are certainly part of the API and it looks like they’re not encapsulated well enough.