Proposal: do not require <description> in <list> without <term> #8976
Unanswered
sharwell
asked this question in
Language Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Champion issue: #8977
Motivation
Currently, the C# language specification describes the
<item>
documentation element as always requiring the child element<description>
. This includes cases like numbered and bulleted lists where the<term>
element is omitted. In these cases, the<description>
element is unnecessarily verbose and the compiler does not provide an assistance in creating conforming documentation comments.dotnet/machinelearning#529 (comment)
dotnet/roslyn#29018
Detailed design
The C# language specification is updated as follows (final wording TBD):
In other words, the following become equivalent:
Remarks
This behavior aligns with both user expectations and the long-standing behavior of Sandcastle Help File Builder. This behavior also aligns with the current C# compiler behavior and the IDE experience, so implementation of the proposal will be limited to a change in the wording of the language specification to allow this case.
/cc @EWSoftware @BillWagner @sfilipi
Beta Was this translation helpful? Give feedback.
All reactions