© Kit Eason 2018
Kit EasonStylish F#https://doi.org/10.1007/978-1-4842-4000-7_3

3. Missing Data

Kit Eason1 
(1)
Farnham, Surrey, UK
 

Not even a thought has arisen; is there still a sin or not?

—Zen Koan, 10th Century CE

This is a chapter about nothing! Specifically, it’s about how we handle the absence of data in our programs. It’s a more important topic than you might think at first: bugs caused by incorrect handling of missing data, typically manifested as “null reference errors,” are distressingly common in Object Oriented programs. And this still happens, despite code to avoid such errors forming a significant proportion of the line count of many C# codebases.

In this chapter I’ll try to convince you how serious a problem this is, and show you ...

Get Stylish F#: Crafting Elegant Functional Code for .NET and .NET Core now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.