-
Notifications
You must be signed in to change notification settings - Fork 76
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
Use C# 8 nullable reference types #60
Comments
What's the point of using it? |
Making clear whether parameters are nullable lets downstream users avoid unintentionally passing nulls into methods. |
This is not done. Request reopen. |
𝖳𝗁𝗂𝗌 𝗂𝗌 𝗇𝗈𝗍 𝖽𝗈𝗇𝖾. 𝖱𝖾𝗊𝗎𝖾𝗌𝗍 𝗋𝖾𝗈𝗉𝖾𝗇. |
Could you at least put examples where this feature can be used in our library? From my experience, almost always methods parameters must not be null in AM |
Then that is great! After enabling nullable reference types, little code changes will be required. |
Put <LangVersion>8.0</LangVersion>
<Nullable>enable</Nullable>
<WarningsAsErrors>nullable</WarningsAsErrors> in the |
@Happypig375 maybe you could do that and make a PR? |
@siriak The green light is needed or LayoutFarm/Typography#192 will happen again. |
@Happypig375 agree, good point. |
We will look at the changes. If all unit tests are passed, we will merge it. |
I have started to implement this. |
Reference https://github.com/manuelroemer/Nullable.
The text was updated successfully, but these errors were encountered: