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.