News for hackers. Stuff that matters.
Re:Mental models around Ok-Wrapping by notacoward on Friday April 10, 2020 @02:25PM (#22835902)
> I should probably write a blog post about this or something.

Please do. I did. Shameless self-plug:

https://obdurodon.silvrback.com/error-handling

Maybe you'll find something of interest there, even if it's something to disagree with. That's fine; contrast improves visibility. Having written that just before the current surge of interest in the subject, I'm finding many of the discussions quite fascinating.

Re:Mental models around Ok-Wrapping by eximius on Friday April 10, 2020 @03:09PM (#22836324)
Its interesting, but I'm not sure that your proposal still qualifies as concise. Nor am I sure that ADT-based error handling (Option/Result/etc) belongs should be considered silently dropped. Option certainly sees some abuse, but on the whole, `unwrap()` is a red flag that draws my attention. And, in Rust, with pattern matching and `?` to propagate errors, I see errors handled more often than not.