POV-Ray : Newsgroups : povray.unix : Pyvon 1.3 : Re: Pyvon 1.3 Server Time
6 Oct 2024 14:00:28 EDT (-0400)
  Re: Pyvon 1.3  
From: fabien Henon
Date: 29 Jan 2003 13:22:03
Message: <3e381bcb@news.povray.org>
gimi wrote:
> Thorsten Froehlich wrote:
> 

>> In article <3e36e7c9@news.povray.org> , Warp <war### [at] tagpovrayorg>  
>> wrote:
>>
>>>  I don't understand how this "beautifies" the code. If anything, it only
>>> causes problems.
>>
>>
>> All official POV-Ray editors support tabs properly.  Only some people 
>> in the
>> terminal world seem to prefer outdated editors without proper tab 
>> support.
>> Those people need to realize that they are running software that has been
>> outdated for two decades and that they should really move on.  Tabs 
>> are the
>> future, spaces are a thing of the past many here don't even remember 
>> because
>> they could neither read or write back then...
> 
> 
> Tabs do indeed cause problems in some cases.
> 
> For example, I use different tab sizes for different
> kinds of source files, like size 4 for perl, size 2 for
> python and size 8 for others.  These files won't look
> very good when loaded into some other (or someone else's)
> editor or viewer if I used "real" tabs!
> 
> That's just one reason why I'd never use "real tabs" in
> *any* editor.
> 
> And, the editors I know of handle spaces a lot better!
> This includes the povray editor, which IMHO isn't a good
> text editor anyway - it's functionality is quite limited.
> It can't trim trailing spaces AFAIK, and I hate that mix-
> ture of spaces and tabs I'd get after editing a file for
> a while, as spaces are never replaced by tabs automatically.
> Upon indenting text, another tab is just inserted at the
> beginning of the line, and if auto-indentation is on, the
> whole indent is copied from the previous line (including
> whatever combination of tabs and spaces there are).
> 
> (So much about outdated software.. I grew up with emacs
> and vi, and they both could (and still can) handle both
> spaces and tabs excellently! - Though I don't know if
> it was those you had in mind.. ;)
> 
> I can't really see one single reason to use tabs in plain
> text files. - It would be a completely different story if
> you used variable width fonts (or even a word processor;
> but then, tabs are handled in a different fashion anyway).
> 
> Spaces are unambiguous.


And heavy. In some cases in python scripts, if tab sizes are set to 8 
(as was my case when I started using Kate), you have to type 8 times on 
the space. If you have heavily nested declarations, you have to multiply 
that number by the levels of nesting. Imagine what it's like in a 2000+ 
line script (pyvon)
I did started using spaces instead of tabs because at first I did not 
bother setting up tab size on the different editors.

This way I get the same identation inside all the def().


But this is a bit off-topic in here.

Fabien H

> 
> 
> g.
>


Post a reply to this message

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