Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: