Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Use of 'var' in C#
Message
De
01/05/2010 07:12:56
 
 
À
01/05/2010 03:37:21
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01462533
Message ID:
01462627
Vues:
57
>>>(b) laziness :-}
>>
>>And laziness here IMHO is really a virtue, as it saves you from changing "var" as well if the type definition changes.
>
>A fair point. But, personally, if the type can be established I prefer to use it. Makes the code more readable (and leaves open the possibility of using it outside the current scope)

Beauty is in the eye of the beholder <g>. For me it itches in the "not as DRY as I like it" area.

let us disagree at a minor point and work at getting some code out!

thomas
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform