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

Marcos Douglas md at delfire.net
Tue Feb 2 18:35:06 CET 2016


On Tue, Feb 2, 2016 at 3:06 PM, Martin <fpc at mfriebe.de> wrote:
> In this case, I dislike the
>    x := if a then b else c;

Why not as below, using 'inline' keyword?

   x := inline if a then b else c;

It is simple and elegant;
Is different than a simple 'if';
Could be used to extend 'case' too;
Don't looks like a function;
Don't collides with another function name.

Best regards,
Marcos Douglas



More information about the fpc-pascal mailing list