I can't believe they went with the double exclamations, it's so ugly. I personally think it should have been done automatically when nullable is enabled and a reference type isn't marked as nullable; otherwise, use an attribute. If it had to be a new language symbol, then it should have been an exclamation after the type, just as the question mark is done. I don't know where this fascination with exclamations after variable names came from, first it was one and now it's two, but it needs to end.
That aside, record structs and the field magic variable have address my top two wishlist items, so overall this is sounding like awesome progress.
Yeah, I agree. I don't like !! at all, much like I don't like ??, either. It doesn't help the ever-expanding mental model of absorbing all C# has to offer, and isn't very beginner-friendly, IMO. I am excited to get this and the record structs. Thanks for reading!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I can't believe they went with the double exclamations, it's so ugly. I personally think it should have been done automatically when nullable is enabled and a reference type isn't marked as nullable; otherwise, use an attribute. If it had to be a new language symbol, then it should have been an exclamation after the type, just as the question mark is done. I don't know where this fascination with exclamations after variable names came from, first it was one and now it's two, but it needs to end.
That aside, record structs and the
field
magic variable have address my top two wishlist items, so overall this is sounding like awesome progress.Yeah, I agree. I don't like
!!
at all, much like I don't like??
, either. It doesn't help the ever-expanding mental model of absorbing all C# has to offer, and isn't very beginner-friendly, IMO. I am excited to get this and the record structs. Thanks for reading!