Well-formedness dev guide page#2889
Conversation
Co-authored-by: Boxy <rust@boxyuwu.dev>
|
diff of the headers lol +- Well-Formedness
-- Well-Formedness of Items and Type-Level Terms
+ - What is Well-Formedness
+ - talk about the abstract concept. wfness isnt a specific thing its just the nebulous concept of things being 'correct'. we generally use it informally all over the place just to talk about us having checked something in the type system.
+ - there are some actual places in the compiler that use the wf terminology specifically. item wfck and well formed obligations
- Well-Formedness of Type-Level Terms
- Obligations for Well-Formedness
- When Type-Level Terms Are Well-Formed
- We Don’t Need Normalization (Yet)
- Const Generic Arguments
- Well-Formedness of Items
- We (Sometimes) Need Normalization
- Global and Trivial Bounds
- When We Don’t Fully Do Well-Formedness Checking
- Trait Objects
- Free Type Aliases
- “Well-Formed” or “Wellformed”?
- What Well-Formedness Isn’tvague thoughts about adding a new header at the top. briefly talked about this to u on zulip but not much. I think that the right framing is probably to start by going "hey wfness is a nebulous informal concept" and then go "there are a couple concrete places in the compiler that are named after this nebulous informal concept". |
There was a problem hiding this comment.
its somewhat arbitrary but im not a huge fan of saying stuff like "perform term well-formedness checking" and would rather we say things like "check terms are well-formed". im not sure I can justify why this is the case but it feels quite off to be saying the former instead of the latter 😅
i think this is the nitpickiest of all my reviews but i think we're pretty much There with this doc at this point?
Co-authored-by: Boxy <rust@boxyuwu.dev>
Co-authored-by: Boxy <rust@boxyuwu.dev>
|
are the intermediate commits worth keeping... should we squash |
|
I'm comfortable with a squash here |
Initial work off of discussions with boxy + chasing hyperlinks. Part of #2663.
Few unsolved items here:
item-wfckorterm-wfck(alt: term well-formedness checking for ths one specifically).I've also ended up doing some syntax here "from scratch", which I could use some input on. Specifically for showing off obligations I've done:
If this works fine, cool. Otherwise, open to being told to do it a different way :)
Finally, I'm putting this in an
analysissubfolder as I've been told we need to do some structural reordering of the mdbook directory, and this should eventually live in ananalysissubfolder so might as well have it there now.Footnotes
This was "Type-Level Term" in these files before I find-replaced it all to Term, which is maybe too vague to our target audience. ↩