home bbs files messages ]

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

   comp.os.vms      DEC's VAX* line of computers & VMS.      264,096 messages   

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

   Message 263,065 of 264,096   
   Chris Townley to All   
   Re: extending MySQL on VMS   
   20 Aug 25 18:05:32   
   
   From: news@cct-net.co.uk   
      
   On 20/08/2025 13:27, Simon Clubley wrote:   
   > Indented properly (not as in your next example!) I find that   
   very   
   > readable and is mostly how I would write it although I do use code   
   > like your return example when appropriate. This is my variant:   
   >   
   > 	if (p != NULL)   
   > 		{   
   > 		if (p->ptr != NULL)   
   > 			{   
   > 			if (something(*p->ptr))   
   > 				{   
   > 				// Do something....   
   > 				}   
   > 			}   
   > 		}   
   >   
   > In case that doesn't survive a NNTP client, it is in Whitesmiths format:   
   >   
      
   That is why I don't like Whitesmiths   
      
   To me the curly braces should logically align with the preceding statement.   
      
   When I first looked at he example, I immediately thought there is a   
   missing closing brace, which of course there isn't.   
      
   I also dislike putting the opening brace at the end of the preceding   
   line, although I have had to in some cases. Probably a Microsoft invention   
      
   --   
   Chris   
      
   --- 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