Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP Bug, who's seen it?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00304389
Message ID:
00304914
Views:
42
>>>This is one oft touted convention that I don't stick to at all.
>>>Say I have a routine that has to check for several conditions before it can get to the meat of the routine, if any of them fail, it should return .F. instead of running through.
>>
>>This is exactly what I tried to say, see my reply to George. Or maybe there is a misunderstanding here?
>
>I was agreeing with you. I was disagreeing with George (or rather, the convention that George subscribes to). :-)

Erik! You changed your picture, not personality< g >.

Seriously, in most cases this isn't an issue. I mean if I've got 20-30 lines of code, and performance isn't an issue, why not return at the bottom? I've just found it a good habit and it helps me maintain the applications. Another thing it does is maintain the logical sub-ordination of the code blocks. You know (and are absolutely certain), that when a block subject to a logical conditions executes or fails to, exactly why.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform