Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Proper way of declaration
Message
De
05/08/2006 17:42:21
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Proper way of declaration
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01143264
Message ID:
01143264
Vues:
49
This page:

http://addressof.com/blog/articles/CodingGuidelines.aspx

says that using long declaration is not good. Basically, they quoted this:
Do use the short method for instantiating classes on the same line.

Right: 

Dim someStuff As New Collection()

Wrong: 

Dim someStuff As Collection = New Collection()
Can someone explain me why it is wrong to use the long declaration?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform