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

Dmitry Boyarintsev skalogryz.lists at gmail.com
Tue Feb 2 14:39:03 CET 2016


On Tue, Feb 2, 2016 at 7:45 AM, Henry Vermaak <henry.vermaak at gmail.com>
wrote:

> Exceptions to standard behaviour is bad, just because there are
> exceptions doesn't mean that we need to create more of them.
> Documenting something doesn't make the behaviour intuitive.
>
> Too many exceptions create a rule? :)

I'd suspect that both if-else-experssion and iif() will end up being in the
FPC.
Since it appears that preference is split exactly 50/50 over an expression
and a function.

Similar to other duplication:
...in sets
  Include(ch, 'a')
  ch:=ch+['a'];

...in arithmetical operations
   a:=a+4;
   inc(a,4);
   a+=4;   // C-style btw!

thanks,
Dmitry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160202/35b36c28/attachment.html>


More information about the fpc-pascal mailing list