3 ms·
The gp almost certainly means when reading code, not when writing it. Why did this function return here... I don't see anything. Oh wait, there's a ?. On the o
by TheCycoONE 8y ago
The gp almost certainly means when reading code, not when writing it. Why did this function return here... I don't see anything. Oh wait, there's a ?.
On the other hand error handling can distract from the intention of the code, so in another sense ? makes it easier to read.
The author can choose if they prefer ?, try!, or a plain old match or if let / return on the Result.