|
![](/i/fill.gif) |
I'd like to see a atandard which includes comments on NEW lines (the are
SO easy to remove then)
Bob wrote:
>
> Some people comment the ends of those blocks, ie.
>
> union {
> sphere {0,1}
> box {-1,1}
> } //union
>
> to make certain of where things are, but that is a bit of overkill if the script has
> been written out nicely enough to see what's what. Hey, here's a thought. What if
> POV-Ray could see these in a parse (oops, yeah it does already) and write into your
file
> this sort of thing automatically. Switchable of course for the dislikers of extra
wasted
> space.
>
> Nieminen Mika wrote:
> >
> > Ken <tyl### [at] pacbell net> wrote:
> > : The biggest problem then lies with the fact that there is no agreement
> > : as to what constitutes "proper" indentation. No one seems to be able
> > : to agree on that either.
>
> Bob here again, writes:
> Remember, there's the POV-Ray code setting in the CodeMax editor. No choice there,
love
> it or leave it (or further edit what it gives you, my personal favorite).
>
> > A "proper" indentation is one which allows you to easyly see where does
> > a block start and where does it end without having to search through the
> > entire code (ie. you can just skip the majority of the code if you only
> > want to see where does the block end). This is speacially important with
> > nested blocks. You only need 3 or 4 levels of nesting for the non-indented
> > code to be almost completely unreadable.
> > This same indentation of nested blocks is also used in other places than
> > programming, for example the html lists (see for example the povVFAQ page).
> > The indentation of blocks makes it easy to "parse" the contents of the
> > text. You can easyly see the "title" of each block and choose the block
> > you want.
> > This same principle applies to code (povray or whatever). The command
> > at the beginning of a block is the "title" of that block (for example
> > "#while" or "sphere"). If you are not interested in that block you can
> > easyly skip it and go to the next block.
> > Now, this skipping is very hard if you can't see where does the block end.
> > It's extremely tedious to search through the entire text to see where does
> > the next block begin.
> > Just imagine a newspaper with _all_ its text without titles, blocks,
> > columns, newlines, empty lines, etc. Searching for certain news could be
> > extremely tedious. The same applies to pov-code.
> >
>
> --
> omniVERSE: beyond the universe
> http://members.aol.com/inversez/homepage.htm
> mailto://inversez@aol.com?Subject=PoV-News
--
Politicians - It seems to me that the worst of them could convince me
that horse shit tastes like honey-cake; the best of them would leave
me believing that I alone in all the world had failed
to enjoy its flavour.
The individual is more important then the state!
Post a reply to this message
|
![](/i/fill.gif) |