In message <8jftftfel...@mid.individual.net>, Neil Cerutti wrote:

> The handsome ':' terminator of if/elif/if statements allows us to
> omit a newline, conserving vertical space. This improves the
> readability of certain constructs.
> 
> if x: print(x)
> elif y: print(y)
> else: print()

I would never do that. “Conserving vertical space” seems a stupid reason for 
doing it. In C, I even go the opposite way:

    if (x)
      {
        printf(..., x);
      }
    else if (y)
      {
        printf(..., y);
      }
    else
      {
        printf(...);
      } /*if*/

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to