[webkit-dev] normalizing namespace indenting
Chris Jerdonek
chris.jerdonek at gmail.com
Wed Nov 18 18:51:26 PST 2009
On Tue, Nov 17, 2009 at 10:39 PM, Darin Adler <darin at apple.com> wrote:
> On Nov 16, 2009, at 7:54 PM, Chris Jerdonek wrote:
>
>> So, I was wondering if we can clarify the rule to apply only to the outermost namespace declaration.
>
> Yes, I think we can.
>
>> (Consecutive declarations like "namespace JSC { namespace WREC {" would be treated as a single declaration for the purpose of this rule.)
>
> Neat idea, I think.
Thanks. The idea stems from a syntactic sugar for "using" blocks in
C# (different meaning of "using" from C++). Instead of doing this--
using (Resource resource1 = new Resource())
{
using (Resource resource2 = new Resource())
{
...
}
}
You can do this:
using (Resource resource1 = new Resource())
using (Resource resource2 = new Resource())
{
...
}
--Chris
More information about the webkit-dev
mailing list