[fpc-devel] Dangerous optimization in CASE..OF

Marco van de Voort marcov at stack.nl
Thu Jul 13 22:24:44 CEST 2017


In our previous episode, Martok said:
> Regardless of whether there may be some argument for this language change, I'm
> still a firm believer in "don't surprise the user". There is literally no
> precedent that this simplification has ever been done in any Pascal compiler
> (quite the contrary), and there is no written hint that FPC does it either.
> Basically, if people with some 30-ish years of experience (and always keeping up
> with current language extensions) write that, I think we may have an issue here:

Personally I think the input validation angle to justify checking enums is
dragged-by-the-hairs.  Input validation should be done at the bounderies of
the system, not everywhere.




More information about the fpc-devel mailing list