dotnet / dotnet/csharplang

Champion "Implicitly scoped using statement" (16.3, Core 3)

Open
#1,174 107 comments 106 reactions 1 assignee Assigned to @jaredpar View on GitHub
Implemented Needs ECMA Spec Proposal Proposal champion
Dominant language
C#
Stars
12.7k
Forks
1.1k
Avg merge
11h 1m
Merged PRs (30d)
3

Description

- [x] Proposal added (https://github.com/dotnet/csharplang/blob/master/proposals/using.md)
- [x] Discussed in LDM
- [ ] Decision in LDM
- [ ] Finalized (done, rejected, inactive)
- [ ] Spec'ed

This is for some form of `using` statement, where the statements executed while the resource is held are the following statements in the same block that contains the `using` statement; the resource is freed at the end of the block.

See https://github.com/dotnet/csharplang/issues/114 and https://github.com/dotnet/csharplang/issues/114#issuecomment-349773994

LDM history:
- https://github.com/dotnet/csharplang/blob/master/meetings/2018/LDM-2018-07-09.md

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.