Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mdot science
Message
From
17/06/2021 07:50:10
 
 
To
16/06/2021 19:52:40
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., New Zealand
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01681249
Message ID:
01681299
Views:
53
>JR>FWIW, using private variables rather than passing parameters to functions also makes a big difference, at the cost of legibility/familiarity. Do you pass parameters? At some point, perfect becomes the enemy of good.
>
>>MY>I always pass parameters, because that is not perfect, it is better than what is honestly barely good enough among humans. You forget the cost of encapsulation. Something can affect the private variables leaving the calling code in a huge mess or multiple patients dying.
>
>I suppose I could respond by calculating a % improvement in a function with 254 parameters, said improvement available for FREE by simply using private vars or even simply assigning vars that are private by default, with this benefit missed out on by idiots. ;-)
>
vfp compiler allows more than parameters than vfp ?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform