On 5/26/2010 12:06, Jürgen Hestermann wrote:
But when having it formatted like this


if x then
  begin
    code;
  end
else
  if y then
     begin
       code;
     end
  else
     begin
       code;
     end;


you can immediately see that the new-command has to be inserted like that:


if x then
  begin
    code;
  end
else
  begin
    new-command;
    if y then
      begin
        code;
      end
    else
      begin
        code;
      end;
  end;

i also recall how i used to scroll thru hundreds of pages looking for a procedure that i needed to work on... using (holding down) the arrow keys to scroll hundreds and hundreds of lines, i wasn't looking for specific code, at that point, but more of the flow of the indents... in fact, one might say that i would "blur" my eyes so as to see the "shape" of the left side of the code... i definitely wasn't focusing on it or trying to read it at that point...

i'm not sure how to really explain it but maybe similar to looking for a section of shoreline by picking out the surrounding areas...

indents are nothing... they are simply spaces and can actually be eliminated from all source code... the compiler doesn't care about them... they are a human necessity (crutch?) ;)

--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to