Pre-RFC: catching functions https://internals.rust-lang.org/t/pre-rfc-catching-functions/6505 … cc @nick_r_cameron
-
-
That explanation kinda sounds too magical to me, vs. teaching the types - there's nothing special about the type besides the ? (and soon throws/catches/w.e) sugar and it being standard, and leading users to understand the types seems better?
-
I think you teach the types real quick. The point where you teach that you can get your hands on the Result is when you teach it's a Result. I think it would come pretty early too.
End of conversation
New conversation -
-
-
Yeah. Correctly constructing the mental model is key. However. We can't just assume that folks will read The Book. They may read a different book, or learn this feature by reading code (that's what I'd do). So designing the thing such that it's not easily misleading is important
-
Totally agree. We should strive to: First, make it self explanatory. Second, use error messages to guide. And as a last resort, make sure the documentation will help those who manage to find it. In that priority order.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.