Repository navigation
Reduced spec for 0.1. - #120
Conversation
| nullness annotations. **Nothing here is “set in stone” yet.** | ||
|
|
||
| It will be very helpful to read or refer to the `core | ||
| concepts/glossary <https://docs.google.com/document/d/1KQrBxwaVIPIac_6SCf--w-vZBeHkTvtaqPSU_icIccc/edit>`__ |
There was a problem hiding this comment.
any chance we could put the glossary into .md form as well? The docs aren't public, but this page will be publicly visible, IIUC, so links to the docs are probably ill-advised in any case
There was a problem hiding this comment.
That is something we'll need to do. I am hoping to call it out of scope for 0.1: "Fortunately," it still seems unlikely that anyone outside the group will view the spec. Do you think we can get away with that? We can always release an 0.1.1 if we want to update the links to point to somewhere publicly visible for historical interest.
There was a problem hiding this comment.
SGTM. maybe put something like "TODO: make these available with spec" into this text then?
|
|
||
| We give `semantics <#semantics>`__ to these annotations independent of | ||
| particular tools. We don’t specify what tools must do with the | ||
| information we provide, nor do we forbid them from adding to it (e.g., |
There was a problem hiding this comment.
"we provide" -> "provided using annotations defined here" or something like that?
There was a problem hiding this comment.
Tweaked slightly differently to try to keep the length down. But maybe it's less clear now? I can give it another shot if you think I should.
wmdietlGC
left a comment
There was a problem hiding this comment.
A few suggestions, overall looks great.
| - Can the method return a null map? That is unspecified (since no | ||
| defaulting annotation is in scope) | ||
| - Can the map’s keys be null? no. This is because the wildcard’s | ||
| explicit bound, ``@Nullable String``, is intersected with the |
There was a problem hiding this comment.
Maybe this intersection should be mentioned in the Type arguments of parameterized types section? It's a bit surprising to first read about this in the example.
There was a problem hiding this comment.
Oh, yeah, that's in one of the parts I cut out. How about I cut this section down to refer only to the type parameters' bounds (see new version)? Or maybe we'd be better off without the section entirely?
|
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. ℹ️ Googlers: Go here for more info. |
|
Hmm, any ideas, @wmdietlGC ? The internal CLA tool tells me that I can accept code from various @google.com email addresses, but it says "no" for yours :( |
| field [`#50 <https://github.com/jspecify/jspecify/issues/50>`__]. | ||
| *debated* | ||
|
|
||
| - Applying more than one of these annotations to the same scope (since |
There was a problem hiding this comment.
nit: maybe we can lose this rule (for both @Nullable and @DefaultNonNull), since javac will reject duplicate use anyway.
There was a problem hiding this comment.
I think I made the same comment on the Docs version of this at one point :) As I recall, kevinb took the position that this part of the spec was essentially saying "These annotations will not be @Repeated." While it's hard to imagine that anyone would even think to define them that way, I suppose it's technically something that we want to forbid.
There was a problem hiding this comment.
Updated to match the change you made to the Docs version.
| hierarchy [`#80 <https://github.com/jspecify/jspecify/issues/80>`__]: | ||
|
|
||
| | ``Foo`` (written in the context of ``@DefaultNonNull``) | ||
| | ``<: Foo`` (written outside the context of ``@DefaultNonNull``) |
There was a problem hiding this comment.
nit: you could use "<=" (or some other symbol) to avoid overloading Java's base subtyping
There was a problem hiding this comment.
Then I moved from <= to ⋖, since the JLS uses <= for containment.
|
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
|
I reverted Werner's typo fixes while we sort out the CLA question. |
Let's see what GitHub does with the rST version first. This reverts commit aeb5f02.
No description provided.