962
you are viewing a single comment's thread
view the rest of the comments
[-] dan@upvote.au 2 points 1 year ago

they both allow any object to be null and that's usually a headache whenever a null exception shows up.

C# has nullable reference types now: https://learn.microsoft.com/en-us/dotnet/csharp/nullable-references. If you enable it, you have to explicitly make reference types nullable (like ?string) and you'll get build warnings if you try to use a variable that's potentially null.

this post was submitted on 04 Mar 2024
962 points (100.0% liked)

Programmer Humor

33755 readers
108 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS