Meaning of dammit operator | Babel Free
Definitions
The operator ! in the C# programming language, used to indicate to the compiler that a possibly null reference will not be null at that point.
Examples
“If you have⟳ a reference that the compiler presumes could be null […] but which you have⟳ good reason⟳ to believe⟳ will never be null, you can tell⟳ the compiler this by using the null forgiving operator […] It is sometimes known informally as the dammit operator, because being an exclamation mark⟳ makes it look⟳ like⟳ a slightly exasperated kind of assertion.”
“However, C# 8 does have⟳ a feature (which I've heard referred to as the dammit operator) that allows you to insist that, despite what the compiler believes, you know⟳ the variable will not be null; […]”
“When we've filtered out all the null elements from our collection, we apply⟳ the dammit operator to the argument for ToTitleCase, as shown in Listing 2-34.”
CEFR level
B2
Upper Intermediate
This word is part of the CEFR B2 vocabulary — upper intermediate level.
This word is part of the CEFR B2 vocabulary — upper intermediate level.
See also
Know this word better than we do? Language is a living thing — help us keep it growing. Collaborate with Babel Free