Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hide won't
Message
From
12/03/2014 12:06:51
 
 
General information
Forum:
Javascript
Category:
JQueryUI
Title:
Miscellaneous
Thread ID:
01596038
Message ID:
01596306
Views:
38
>Any decent editor will highlight matching braces so it's not difficult to keep track.
> Would you really rather write (or read) this:
       static void SomeMethod()
        begin
            for (int x = 0; x < 100; x++)
            begin
                var sc = new SomeClass begin Name = "Viv", Age = 22, IQ = 80 end;
            end
        end
> than:
        static void SomeMethod()
        {
            for (int x = 0; x < 100; x++)
            {
                var sc = new SomeClass { Name = "Viv", Age = 22, IQ = 80 };
            }
        }
-----
I'd rather read this:
        static void SomeMethod()
        {
            for (int x = 0; x < 100; x++)
                var sc = new SomeClass { Name = "Viv", Age = 22, IQ = 80 };

        }
:-)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform