home bbs files messages ]

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

   comp.lang.c++.moderated      Moderated discussion of C++ superhackery      33,346 messages   

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

   Message 33,105 of 33,346   
   =?ISO-8859-1?Q?=D6=F6_Tiib?= to Frank Bergemann   
   Re: Access Data Items In Ancestor Stack    
   13 Jun 13 06:50:42   
   
   a5eec0be   
   From: ootiib@hot.ee   
      
   On Wednesday, 12 June 2013 15:50:59 UTC+3, Frank Bergemann  wrote:   
   > Here's the final version - pls. see below. But it's just an example.   
   > Maybe for other algorithms it will be more usable.   
      
   IMO current model of requesting all information a function needs from   
   caller by declaring explicit function parameters is cleaner and simpler   
   to understand.   
      
   That Dobbs article seemingly misses the point. Exceptions are necessary   
   evil ... efficient way to deal with very rare concerns. Now if a function   
   realizes that it can not do what it should because some access is not   
   granted or keys are not authorized then it should either abort the   
   program or throw exceptions or return error (depends on its contract   
   requirements). Somehow hacking and repairing the situation by doing   
   something that is far above its responsibilities is most evil thing to do   
   because it results with spaghetti code that we all hate.   
      
      
   --   
         [ See http://www.gotw.ca/resources/clcm.htm for info about ]   
         [ comp.lang.c++.moderated.    First time posters: Do this! ]   
      
   --- 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