Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hungarian Notation cost you too much in VFP
Message
 
À
03/09/1997 21:37:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00048156
Message ID:
00048523
Vues:
24
>By the way, I do *not* agree that strongly typed is necessay at all, personally. It works just fine right now, as far as I'm concerned.

Jim,

Jim I must disagree. Every high level language should be strongly typed.

Allowing a var to change from date to char on the fly is as low level as a pointer. Variable names simply become storage locations not an highlevel container for values.

One must pity the poor developer whose subroutine crashes and must trace every occurance of the variable in every property to find out where ldDate (or Date_gd) became a character string.

It is more disturbing if a developer uses Hungarian notation (or it's reverse) and then changes type. Imagine lnTotal could actually hold "23". Arg.

Strong typing introduces no extra lines of code except for a declaration of an extra variable.

Have I made a convert? :-)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform