Re: Rust error stratergy in the hg codebase

2022-08-25 Thread Raphaël Gomès
Update, I've posted the same thing over on Reddit¹ and have gotten advice consistent with my discussions with other people (thanks Yuya!). So unless someone objects to any of this, I'll have a somewhat difficult refactor ahead of my, but at least with a pretty clear plan. Raphaël [1] https

Rust error stratergy in the hg codebase

2022-08-22 Thread Raphaël Gomès
Hi all, I've been having an ergonomic issue with error handling lately. Error handling strategy used to be kind of a rough edge in Rust because of the different constraints of both the compiler and the standard library. Lately it seems that most projects are happy with using a mix of `thiserr