-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove #nullable enable #17150
Remove #nullable enable #17150
Conversation
Why removing this? |
Check the issue description, moreover is makes the code-based inconsistent, I'm able to add the settings in the Removing this easier than applying the nullable over the code-base |
I don't think you should do this. At some point we may want to use nullable everywhere. Since it's already there, I would rather keep it |
We can do it now if we do so, but no need to use the attribute anymore, using the |
I would not proceed with this |
Let's hear @sebastienros feedback, we already started months ago to make things consistent, so either we accept nullable or not but not using attribute |
I'm against removing the ones we already have. If we completely want to enable nullable annotations some time in future, this is work that is already done. Enabling nullable for the whole project is also not an options, if only parts are done yet. |
Agree with not doing this. We'll want to fully enable nullable in the future. Having a bit done now will help with that. |
If we do so it's much better and cleaner to do it in |
Yes, there's no disagreement there (or rather, it should be done solution-wide in a props file). But until then, we shouldn't revert nullable in those files that already have it, so then we have to reimplement these later. |
We could have reverted if all the types were marked with
That's the theory. That would be a pain though to do it correctly. Also would break all existing PRs. Could be done by modules or groups, could still impact lots of related projects though. |
I think it makes sense to add nullable incrementally on a per file and/or module basis. It is just too much work to do it all at once. Then we can remove the pragmas per project step-by-step as well. |
It could be done module by module as Seb refers to, but I suggest doing it before |
OK, but the point is, this PR isn't needed. |
I will close this PR and file issue for tracking |
Seems the nullable attribute was added by Rider, no need for it while it's configured in .csproj