home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.visual.basic      MS Visual Basic discussions, NOT dot-net      10,840 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 10,340 of 10,840   
   Steve Gerrard to rickNOSPAMnews@NOSPAMcomcast.net   
   Re: Mid function   
   30 Dec 06 10:59:53   
   
   From: mynamehere@comcast.net   
      
   "Rick Rothstein (MVP - VB)"  wrote in message   
   news:bMqdnbFyEaoREwvYnZ2dnUVZ_qKknZ2d@comcast.com...   
   >   
   > You will be doing yourself a big favor if you break the habit you have of   
   > placing parentheses around arguments, now, before it becomes too ingrained a   
   > habit to break later on.   
   >   
      
   I have adopted the opposite habit, that of always using Call with subroutines,   
   and the parentheses along with it.   
      
   My main reason? In the course of development, many subs turn into functions -   
   that is, a return value from the procedure becomes useful, even if it is just a   
   boolean indicating success or failure.   
      
   If I have written Call Test(X,Y), it is then easy to turn it into Z =   
   Test(X,Y).   
      
   I suspect that I also like seeing arguments listed in parentheses when reading   
   code, and it is the more common standard in other languages.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca