Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Using nullable Booleans #18
When you have a variable
I prefer version 3 because it makes the intent very clear.
In many cases you have an additional possibility: Write an extension function that works on nullable types. Example:
@matklad I think that the inversion of the boolean that you have to do in option 2 (the statement is executed when the value is