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 31,915 of 33,346   
   Miles Bader to Martin B.   
   Re: Are MACROS good and can the compiler   
   13 Feb 12 09:51:24   
   
   From: miles@gnu.org   
      
   "Martin B." <0xCDCDCDCD@gmx.at> writes:   
   > IMHO, the namespace problem with macros is *far* too much exaggerated.   
   > Sure, MS/Windows defining macros named `min()` and `max()` was (is) dead   
   > stupid, but `BOOST_FOREACH()` or `MY_THROW_CONTEXT_AWARE_EXCEPTION()` is   
   > hardly going to collide with anything.   
      
   Er, no doubt, but it results in macros having stupidly long and   
   annoying names.   
      
   Namespaces are _vastly_ better in that regard (even if one avoids   
   "using namespace", references from within a namespace automatically   
   use it, and that alone hugely cuts down the number of annoying   
   prefixes).  Result: more readable code.   
      
   -Miles   
      
   --   
   The trouble with most people is that they think with their hopes or   
   fears or wishes rather than with their minds.  -- Will Durant   
      
      
         [ 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