POV-Ray : Newsgroups : povray.off-topic : All bow to the mighty Python : Re: All bow to the mighty Python Server Time
4 Sep 2024 13:17:22 EDT (-0400)
  Re: All bow to the mighty Python  
From: Warp
Date: 21 Apr 2010 07:29:42
Message: <4bcee1a6@news.povray.org>
Darren New <dne### [at] sanrrcom> wrote:
> Warp wrote:
> >   Also autoindentation of Python code is a physical impossibility.

> No it's not.

  Exactly how does the editor know where a block starts and where it ends,
unless it's *already* indented? How can you talk about autoindentation, if
it requires for the code to be already properly indented to begin with?

  Clearly your definition of "autoindentation" is not the same as mine.

>   Replacing indentation in python once the dedents have been 
> lost is problematic. But that's like complaining if you delete all the 
> closing braces in C then you can't figure out where to put them back.

  No, it's not. Why not? Because whitespaces at the beginning of lines are
a lot easier to lose than braces.

-- 
                                                          - Warp


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.