-
Notifications
You must be signed in to change notification settings - Fork 89
Nullability: flow analysis with array creation #1243
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
Comments
More ideas:
|
Short: No. Longer: The Standard is aiming to specify certain features; e.g. specific pragma, annotations, and operations; upon which an implementation may, but need not, build a null analysis implementation and present warnings – it is not aiming to specify the null analysis algorithm or the warnings that must be produced. In doing this the Standard aims to specify the bare minimum, so as not to put unnecessary requirements on implementations. The warnings it currently mentions are intended to all be non-normative examples. In reality of course many readers will take these examples as behaviour that an implementation should follow, something implementors will understand and so the more examples there are indirectly increases the expectations (but not requirements) on implementations, while also limiting how implementations evolve their warnings. |
Sounds good! I may have some more questions for guidance on what is and isn't bare minimum. I'll ping you in #1242. |
Would it be a good thing to mention that a compiler may treat a newly created array as though it was already initialized with non-null values, even though it was not?
The text was updated successfully, but these errors were encountered: