News for hackers. Stuff that matters.
Re:Mental models around Ok-Wrapping by eximius on Friday April 10, 2020 @11:06AM (#22833749)
I took a look at fehler but the thing that kept me from forming an opinion is I have no idea what things look like at the call site - and couldn't find examples in the docs.

If the ONLY thing fehler does is Ok-wrapping on the annotated function, then I can see the value in it, but it doesn't seem like a big deal. Useful, but not worth being added to the language when the proc macro is so complete. (I also see the argument against it - I personally enjoy seeing Result<foo,bar> rather than the Ok-wrapped version, but I see this as a _preference_.)

If the caller is just a wrapper around a function doing Ok-wrapping, the caller must either also Ok-wrap or return Result<_,_>. It's at this point I feel like I'm missing something because he made an ergonomic argument about NOT needing to update things in many places, which seems to contradict this.

There are no comments on this comment yet.