Nice article, I think I’d agree with most of the things you say!
Gee Eersteling
11

Thanks for your suggestion Gee.

This is a perfect use case for discardableResult if you have the source code for that API. This is not possible if you’re using that function from a framework. So in that case you’re stuck with ugly _ :)

I can even add a section to describe use cases for discardableResult or mention in Part 2.

Happy that you liked the article.

Like what you read? Give Göksel Köksal a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.