Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C# 7.x: Default literals #236

Merged
merged 11 commits into from
Nov 30, 2022
Merged

C# 7.x: Default literals #236

merged 11 commits into from
Nov 30, 2022

Conversation

RexJaeschke
Copy link
Contributor

This PR implements the V7 proposal discussed in Issue #67.

@RexJaeschke RexJaeschke added this to the C# 7.x milestone Mar 14, 2021
@RexJaeschke RexJaeschke added the Review: pending Proposal is available for review label Sep 16, 2021
@BillWagner BillWagner marked this pull request as draft February 3, 2022 15:06
@BillWagner
Copy link
Member

converting to draft: C# 7 feature

@BillWagner BillWagner marked this pull request as ready for review October 5, 2022 22:19
Copy link
Contributor

@jskeet jskeet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A bunch of comments - we should discuss this at the next meeting.

standard/expressions.md Outdated Show resolved Hide resolved
standard/expressions.md Outdated Show resolved Hide resolved
standard/expressions.md Outdated Show resolved Hide resolved
standard/expressions.md Outdated Show resolved Hide resolved
standard/expressions.md Outdated Show resolved Hide resolved
@jskeet jskeet added the meeting: discuss This issue should be discussed at the next TC49-TG2 meeting label Oct 26, 2022
Copy link
Contributor

@Nigel-Ecma Nigel-Ecma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some of the phraseology doesn't match the Standard (it presumable comes from the source material) so needs changing. Further I think we should describe default similar to null for consistency.

The restrictions on the use of default_literal as the argument to unary & binary operators, as described in https://github.com/dotnet/csharplang/blob/main/meetings/2017/LDM-2017-05-31.md#default-in-operators, do not appear to be in this Standard. Where they ever added to the spec or implemented?

standard/expressions.md Outdated Show resolved Hide resolved
standard/expressions.md Outdated Show resolved Hide resolved
standard/expressions.md Outdated Show resolved Hide resolved
standard/variables.md Show resolved Hide resolved
standard/expressions.md Outdated Show resolved Hide resolved
Copy link
Member

@BillWagner BillWagner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few nits, but this is getting very close.

standard/expressions.md Outdated Show resolved Hide resolved
@BillWagner
Copy link
Member

closing and reopening to trigger actions.

@BillWagner BillWagner closed this Nov 30, 2022
@BillWagner BillWagner reopened this Nov 30, 2022
standard/expressions.md Outdated Show resolved Hide resolved
standard/expressions.md Outdated Show resolved Hide resolved
standard/expressions.md Outdated Show resolved Hide resolved
@dotnet dotnet deleted a comment from BillWagner Nov 30, 2022
standard/expressions.md Outdated Show resolved Hide resolved
standard/expressions.md Outdated Show resolved Hide resolved
@jskeet jskeet dismissed Nigel-Ecma’s stale review November 30, 2022 21:07

We have fixed everything. (Nigel isn't here to approve, but we'd like to merge. We're confident.)

Copy link
Member

@BillWagner BillWagner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM (per Nov 30th meeting)

@jskeet jskeet merged commit ae45601 into draft-v7 Nov 30, 2022
@jskeet jskeet deleted the Rex-v7-def-literal branch November 30, 2022 21:11
BillWagner added a commit to BillWagner/docs that referenced this pull request Dec 1, 2022
The standard committe has merged the updates to the standard for the following features:

- dotnet/csharpstandard#216 - non-trailing named arguments
- dotnet/csharpstandard#236 - default literals

Remove the feature speclets from the publishing list, and fix any related links.
BillWagner added a commit to dotnet/docs that referenced this pull request Dec 2, 2022
* remove feature specs

The standard committe has merged the updates to the standard for the following features:

- dotnet/csharpstandard#216 - non-trailing named arguments
- dotnet/csharpstandard#236 - default literals

Remove the feature speclets from the publishing list, and fix any related links.

* add redirections

Add the redirections for removed proposal specs.

* fix typo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meeting: discuss This issue should be discussed at the next TC49-TG2 meeting Review: pending Proposal is available for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants