then, you provide meaning to the file itself. The language has no
understanding of the notion of a file. All of the files in the project can
be viewed, from the standpoint of the compiler, as belonging to a single
long stream of text.
This is nearly always easier from the standpoint of the tools. The language
is more elegant and it is easier to refactor the code.
--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik
Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"cody" <de********@gmx.de> wrote in message
news:ul*************@tk2msftngp13.phx.gbl...
Why do we always need braces around namespaces?
It frightens me that even a simply class looks so much nested and
complicated due to this verbose namespace syntax. It also unnecessarily
increases the indentation level of *every* file. The funny thing is that I
cannot imagine one single situatation where it *could* be useful to have
more than one namespace per file.
Why not simply allow (additional to the existing syntax) simply this:
namespace MyCompany.MyProduct;
This short namespace declaration, if present, must appear only once per
file and above all other statements in the file. If someone sees this
syntax he can be sure that this file has only one namespace.