home bbs files messages ]

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

   comp.lang.fortran      Putting John Backus on a giant pedestal      5,127 messages   

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

   Message 4,617 of 5,127   
   Lawrence D'Oliveiro to Thomas Koenig   
   Re: Implicit Semicolons And Statement-Co   
   06 Feb 24 20:02:00   
   
   From: ldo@nz.invalid   
      
   On Tue, 6 Feb 2024 19:00:04 -0000 (UTC), Thomas Koenig wrote:   
      
   > Lawrence D'Oliveiro  schrieb:   
   >   
   >> Python has I think the most straightforward rule: you need to end a   
   >> line with “\” to do explicit continuation, but continuation can be   
   >> implicit if there is an unpaired opening parenthesis, bracket or brace.   
   >   
   > That sounds like a recipe for errors, if you ask me.   
      
   Combine that with proper indentation, to use a two-dimensional layout   
   on the page/screen, and that can be helpful for making clear the   
   structure of an expression. Example: parsing a timezone-offset part of   
   a PDF date/time entry:   
      
       if tzdelta != None and tzdelta != "Z" :   
           tzdelta = re.fullmatch(r"(.)(\d+)(?:\'(\d+))?", tzdelta).groups()   
           tzdelta = \   
               (   
                   (   
                       int(tzdelta[1]) * 60   
                   +   
                       (lambda : 0, lambda : int(tzdelta[2]))[tzdelta[2] !=   
   None]()   
                   )   
               *   
                   60   
               *   
                   (1, -1)[tzdelta[0] == "-"]   
               )   
       else :   
           tzdelta = 0   
       #end if   
      
   --- 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