[fpc-devel] Re: [fpc-l] type discussion

Michael Van Canneyt michael at freepascal.org
Sun Jun 5 12:36:29 CEST 2005



On Sun, 5 Jun 2005, Jamie McCracken wrote:

> Hans-Peter Diettrich wrote:
> 
> > > Not at all; I certainly don't indent them, and I'm a fanatical
> > > indenter.
> > 
> > 
> > Agreed. I really can't understand why some people indent like this:
> > if ...
> > then
> > begin
> >  ...
> >  end
> > else
> >      if
> > ...
> 
> lol - thats not what I meant. If you want readable code you indent inside the
> begin..end blocks ergo the begin..end syntax becomes redundant cause its the
> indentation that provides the visual cue.

Visual, yes. But not for the compiler: it folds whitespace.
The compiler NEEDS the begin...end to check your syntax. 
How is it supposed to know where a stament block begins/ends ? 
Based on indendation alone ? That would not be Pascal...

Michael.




More information about the fpc-devel mailing list