dotnet / dotnet/csharpstandard
"Block body" needs updates in light of expression bodied members
Open
type: bug
- Dominant language
- C#
- Stars
- 815
- Forks
- 99
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 16
Description
The standard has historically used "block body" to describe a member that isn't abstract, to contrast with a body that is a single semi-colon.
These terms should be updated because a "block body" doesn't include members whose definition is an expression bodied member.
Sweep the spec for this term, and replace with "abstract" for `;` and "body" for either a block body or expression body.
See https://github.com/dotnet/csharpstandard/pull/681#discussion_r2384262560
Also see https://github.com/dotnet/csharpstandard/pull/681#discussion_r2384264834
Contributor guide
Assessment
This issue has not been assessed yet.