[fpc-devel] is not operator

Marco van de Voort fpc at pascalprogramming.org
Sat Sep 12 19:21:36 CEST 2026


Op 12-9-2026 om 12:57 schreef Martin Frb via fpc-devel:
>> But since the normal math like syntax not (x is a) is as 
>> comprehensive, it does not really add much except a few 
>> keystrokes.  And it is not common enough to really make saved 
>> keystrokes add up.
>
> Its not common enough... Well, maybe its avoided a lot? Chicken or egg?
>
> Btw, FPC (331, few month old) has over 910 of them.
> Regex:  \bnot\s*\([^(]\s*\S*\s*is\s

So any combination that happens a thousand times in FPC sources warrants 
a language extension? Weird way of reasoning.

>
> It does more than saving the keystrokes.
> It also save on bracket nesting levels. Which translates to: it 
> reduces code obfuscation.

So how many of those 910 were nested?

Anyway, IMHO it is exchanging math syntax (sometimes with parenthesis, 
but very general) with very specific semantic syntax.

Yes, occasionally it saves a few parenthesis, but overall the benefits 
are razor thin. And if you lower the threshold this much, where will it  
end?





More information about the fpc-devel mailing list