[fpc-pascal] New feature: IfThen() intrinsic

Maciej Izak hnb.code at gmail.com
Mon Feb 1 17:37:55 CET 2016


2016-02-01 17:14 GMT+01:00 Graeme Geldenhuys <mailinglists at geldenhuys.co.uk>
:

> That doesn't mean new language features can't be added, but
> when they are, find a Pascal-like solution.
>

IfThen, IIF, &if is controversial.

My favorite still is &if.

More Pascal like propositions:

1) x := IfExpr(true, 0, 0);
2) x := if true then 0 else 0;
3) x := ite(true, 0, 0); // If Then Else = ITE, more correct than IIF

-- 
Best regards,
Maciej Izak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160201/695335bb/attachment.html>


More information about the fpc-pascal mailing list