home bbs files messages ]

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

   comp.compilers      Compiler construction, theory, etc. (Mod      2,753 messages   

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

   Message 1,978 of 2,753   
   Hans-Peter Diettrich to George Neuner   
   Re: language design implications for var   
   08 Jan 11 20:36:40   
   
   From: DrDiettrich1@aol.com   
      
   George Neuner schrieb:   
      
   > Why do so many languages offer (at least) two forms of conditional   
   > loop: one with the test at the beginning and another with the test at   
   > the end?   Why not just offer an infinite loop and a way to break out   
   > that can be tied to any conditional?   
      
   There exist languages with a single loop statement, allowing to break at   
   every end :-)   
      
   do [while...] [until...]   
      ...   
   loop [while...] [until...]   
      
   Breaking out of loops should always be possible, even if some people   
   don't like that, so that your suggestion should work with almost every   
   language. More critical are Continue statements, that allowed my C   
   decompiler to distinguish between For and While loops.   
      
   DoDi   
      
   --- 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