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

Proposal: namespace declaration #3248

Closed
JipingWang opened this issue Mar 4, 2020 · 4 comments
Closed

Proposal: namespace declaration #3248

JipingWang opened this issue Mar 4, 2020 · 4 comments

Comments

@JipingWang
Copy link

To simplify namespace usage as the following (let's call it namespace declaration),

namespace package1 {
    // some classes for package-1
}
namespace package2 {
    // some other classes for package-2
}

to

namespace package1; 
// some classes for package-1

namespace package2; 
// some other classes for package-2

Comments:
Inspired by using declaration in C# 8.0, the proposed change saves the top level indent and a pair of braces.

@MgSam
Copy link

MgSam commented Mar 4, 2020

Duplicate of #2546, #137

@martind0
Copy link

martind0 commented Mar 10, 2020

Yes, please!

@kfimchenko
Copy link

Should be awesome in a combine with #3117

@333fred
Copy link
Member

333fred commented Jul 13, 2020

Closing as a duplicate of #137.

@333fred 333fred closed this as completed Jul 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants