On Sep 1, 2025 at 3:44:17 PM, Nikolay Nikolov via fpc-devel <
fpc-devel@lists.freepascal.org> wrote:

> You're more likely to see things like:
>
> a := if x > 10 then 1 else -1;
>
> instead of
>
> if x > 10 then
>   a := 1
> else
>
>   a := -1;
>
>
Yes I agree but in C-like languages I do use it in function parameters just
as often. Still feeling like IfThen if made a real intrinsic would be most
readable and Pascal-like. Since this new expression exists now making the
intrinsic would be extremely trivial.
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to