Always Get Better

Defaulting Null Variables

One of the things I miss most about C# is the expressive ways in which it handles variable defaults. The ‘double ?’ – ?? – operator is especially useful for checking whether a value is NULL and providing a default object:

Leave a Reply

Notice: Undefined variable: user_ID in /usr/share/nginx/html/wp-content/themes/getbetter/comments.php on line 65