Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hide won't
Message
De
12/03/2014 12:06:51
 
 
À
12/03/2014 12:01:26
Information générale
Forum:
Javascript
Catégorie:
JQueryUI
Titre:
Divers
Thread ID:
01596038
Message ID:
01596306
Vues:
43
>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 };

        }
:-)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform