dotnet / dotnet/csharpstandard

"Block body" needs updates in light of expression bodied members

Open
#1,434 7 comments 0 reactions 1 assignee Claimed by @jskeet View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.