Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Return 2 values from a function
Message
De
22/10/2008 02:12:49
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01355203
Message ID:
01356204
Vues:
30
>Throughout my college been told that every function should have only one exit point and thats how I had to draw my logical schemas( fortran and pascal yeah!) but I have always favored early exit since it made the program easier to read.

Exactly what I am saying. Colleges, books etc say 'one exit point'. OTOH real world developers' experience show that 'multiple exit point' is easier to read and maintain for some (if not many or all) developers.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform