Timeline for Are null references really a bad thing?
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 14, 2023 at 9:57 | comment | added | JotaBe | Yes, forcing it it's something you can configure at the project level. This allows to migrate old projects to newer C# versions, and "procrastinate" updating them to correctly handle the nulls at compile time. When you enable it, the static analysis allows you to find all the possible null related problems. | |
May 15, 2023 at 17:37 | comment | added | Ky - |
Exactly, @JotaBe! And if the compiler mandated them, then you would never be surprised by a null -based error again 🖤
|
|
May 9, 2023 at 17:21 | comment | added | JotaBe | Very good point. Recent version of C# use ? and ! constructs to handle nullability, and catch possible null error at compile time. | |
S Mar 6, 2019 at 19:54 | history | answered | Ky - | CC BY-SA 4.0 | |
S Mar 6, 2019 at 19:54 | history | made wiki | Post Made Community Wiki by Ky - |