On Tue, Feb 2, 2016 at 3:06 PM, Martin <f...@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
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to