[fpc-pascal] if-then-else expression
Flávio Etrusco
flavio.etrusco at gmail.com
Wed Feb 3 03:14:10 CET 2016
On Feb 2, 2016 7:41 PM, "geneb" <geneb at deltasoft.com> wrote:
>
> (...)
>
> So it's not solving a /problem/ it's lessening an inconvienence(sp!).
>
> I would've gone with IIf(). :)
>
>
> g.
>
The problem with Iff() is:
1) it either retains normal function behavior and thus has to evaluate both
expressions (i.e. suboptimal performance and allowing side effects);
2) or add inconsistency by using function syntax but different behavior.
Best regards,
Flávio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160203/3fcb9aa5/attachment.html>
More information about the fpc-pascal
mailing list