News for hackers. Stuff that matters.
Re:Announcing Rust 1.13 by Retra on Thursday November 10, 2016 @07:10PM (#12926042)
>I also sometimes include log statements in specific error branches for debugging and delete them afterwards. That's trivially possible in the Go version but requires more effort in the shorter variants

You can just map your logging in between:

foo().map_err(|e| {log(e); e}).bar()

There are no comments on this comment yet.