Created
May 23, 2012 01:16
-
-
Save plioi/2772701 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Value types can be made nullable, like in C#: | |
int a = 1 | |
int? b = null | |
//But even reference types are non-nullable by default in Rook: | |
string str = null // Compile error! | |
string? nullableStr = null // OK |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment