Honest Functions, Null, and Option
In this chapter, we discuss the art and science of honest functions, the intricacies of null, and the C# tools tailored to address them. But before we dive deep, let’s lay out the roadmap:
- Understanding honest functions
- The problems with hidden nulls
- Embracing honesty with nullable reference types
- Beyond null: Option
- Real-world scenarios
As you navigate through this chapter, be on the lookout for practical advice and evidence-backed guidelines. Come with a curious mind, and by the end, you’ll possess the know-how to write more transparent and resilient C# code.
Just as we did in our previous chapters, let’s assess where you stand. Here, there are three tasks for you. If you’re unsure about tackling them, dive into this chapter right away. But, if you feel confident in your skills, perhaps you might skim through and jump to the sections that challenge you the most. Ready? Let’s go...