dotnet / dotnet/csharplang

Champion "Target-typed `new` expression" (VS 16.8, .NET 5)

Open
#100 204 comments 273 reactions 1 assignee Assigned to @jcouv View on GitHub
Design Review Implemented Needs ECMA Spec Proposal champion
Dominant language
C#
Stars
12.7k
Forks
1.1k
Avg merge
11h 1m
Merged PRs (30d)
3

Description

Summary: Allow `Point p = new (x, y);`

Shipped in preview in 16.7p1.

------

- [X] [Proposal](https://github.com/dotnet/csharplang/blob/master/proposals/csharp-9.0/target-typed-new.md) added
- [X] [Discussed in LDM](https://github.com/dotnet/csharplang/blob/master/meetings/2017/LDM-2017-02-21.md#target-typed-new-expressions)
- [X] Decision in LDM (let's go ahead with prototype)
- [ ] Finalized (done, rejected, inactive)
- [ ] Spec'ed

See also https://github.com/dotnet/roslyn/issues/35

- https://github.com/dotnet/csharplang/blob/master/meetings/2018/LDM-2018-05-21.md
- https://github.com/dotnet/csharplang/blob/master/meetings/2018/LDM-2018-06-25.md
- https://github.com/dotnet/csharplang/blob/master/meetings/2018/LDM-2018-08-22.md#target-typed-new
- https://github.com/dotnet/csharplang/blob/master/meetings/2018/LDM-2018-10-17.md
- https://github.com/dotnet/csharplang/blob/master/meetings/2018/LDM-2018-10-17.md#target-typed-new

Test plan: https://github.com/dotnet/roslyn/issues/28489

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.