[fpc-pascal] precedence "is" and "and"

Michael Van Canneyt michael at freepascal.org
Sun Dec 9 13:02:07 CET 2018

On Sun, 9 Dec 2018, Marco van de Voort wrote:

>> Because to the best of my knowledge, here isn't any difference in
>> precedence, so there is nothing to explain.
> And that was what my post was, checking that.
> I'm more of the "more parenthesis never hurt anybody" school, so 
> operator precedence beyond the normal mathematical is not my strong point.

I am of the same school. When in doubt, use parentheses. 
This is unambiguous.

>> I must confess it assumes that the reader knows what logical 'and' and 
>> 'or'
>> means, but someone who does not know that will probably not read the 
>> docs.
>> (although, he will also not understand "not" either and maybe read the 
>> docs...)
> Maybe clarify that?

Surely you are joking ?

The documentation is there to explain how the pascal language works, 
not how programming and computers in general work.


More information about the fpc-pascal mailing list