Nick Cameron

Results 260 comments of Nick Cameron

There is this for globs which does what you want (I believe): https://dxr.mozilla.org/rust/source/src/librustc_trans/save/dump_csv.rs#857-879 (other than rewriting the source code itself). You would want to move it from dump_csv to the...

Ping @GSam can you make this a priority please? We need it in order for other people to try your tool.

Oh, that is a lovely edge case! Small note that there is no inference here - we just match the name of the field with the name of the introduced...

From https://github.com/nrc/error-docs/pull/10: need to better explain the error conversions in the error type design chapter

From [Twitter](https://twitter.com/CAD97_/status/1590417578056650752): `type Result = std::Result` as a better version of the recommended alias

From [Twitter](https://twitter.com/nick_r_cameron/status/1590011297294618627): more examples (pointing at public repos), concrete examples of what the libs in the ecosystem chapter do.

From [Reddit](https://www.reddit.com/r/rust/comments/yqdnt0/a_draft_guide_to_error_handling/): `impl From` is part of API, mapping from Anyhow features to std features, error-stack crate, good feedback from matklad and epage.

[Hacker News](https://news.ycombinator.com/item?id=33529147)

From Teams: The error variant might increase the size of return types, affecting perf. Consider size of error types and/or Box it. Add a sentence of explanation about try blocks...

And from Zulip: add a case study on designing an error hierarchy, specifically discourage the single, monster enum anti-pattern. Could probably improve the description of `UnwindSafe`. Check for any mentions...