enable nullable for new projects#32756
Conversation
|
@danroth27 can you please confirm that we want to take this change in for our templates? Thanks! |
|
I would love to enable nullability, but I think we would enable it by default rather than make it a switch that a user has to choose. That said, I think there are some important pieces we would need to address before we did that:
The remainder of the framework is annotated enough (and we will cover more by 6.0) that users should find the experience productive. |
|
@pranavkm should this be closed or is there some set of projects we think its appropriate for? |
👍
Do we have tracking issues for these remaining work items? |
it is enabled by default. The |
|
@danroth27 There's #32783 |
|
@jmarolf I think the question is do we need a switch at all. Once we are at a place with ASP.NET Core that we can turn on nullability checks by default, is there really a need for users to have a switch to turn it off? |
I have no objections. I added the switch as a conservative measure. If we are comfortable just using this as the default that makes things simpler. |
| <h2 class="text-danger">An error occurred while processing your request.</h2> | ||
|
|
||
| @if (Model.ShowRequestId) | ||
| @if (Model?.ShowRequestId ?? false) |
|
Nullable was enabled by the other changes that went in today. |
resolves dotnet/templates#485