<div dir="ltr"><div><div><div>Maybe we shouldn't focus all that much on the " if " word..since all in all, it is meant to be differently from the language if-then-else<br></div>What about using another word suggesting a choice?<br><br> j := Switch(i < 32, 48, 21);<br></div> j := Select(i < 32, 48, 21);<br></div> j := Which(i < 32, 48, 21);<div><br></div><div>They look to me as a goog compromise between expressiveness (IfThen) and typing-laziness (iif).<br><br></div><div>Roberto<br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-02-01 20:24 GMT+01:00 Philippe Lévi <span dir="ltr"><<a href="mailto:Philippe@quarta.com.br" target="_blank">Philippe@quarta.com.br</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">iif ... sounds good to me! +1 !<br>
Philippe<br>
<br>
________________________________________<br>
De: <a href="mailto:fpc-pascal-bounces@lists.freepascal.org">fpc-pascal-bounces@lists.freepascal.org</a> <<a href="mailto:fpc-pascal-bounces@lists.freepascal.org">fpc-pascal-bounces@lists.freepascal.org</a>> em nome de Marco van de Voort <<a href="mailto:marcov@stack.nl">marcov@stack.nl</a>><br>
Enviado: segunda-feira, 1 de fevereiro de 2016 16:22<br>
Para: FPC-Pascal users discussions<br>
Assunto: Re: [fpc-pascal] New feature: IfThen() intrinsic<br>
<div class="HOEnZb"><div class="h5"><br>
In our previous episode, Maciej Izak said:<br>
> ><br>
> iif is not semantic clear. IIF means "Immediate IF". Citation: "both<br>
> truepart and the falsepart will be evaluated regardless of which one is<br>
> actually returned." - <a href="https://en.wikipedia.org/wiki/IIf" rel="noreferrer" target="_blank">https://en.wikipedia.org/wiki/IIf</a><br>
<br>
Well, correct that then :)<br>
_______________________________________________<br>
fpc-pascal maillist - <a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a><br>
<a href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal" rel="noreferrer" target="_blank">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal</a><br>
_______________________________________________<br>
fpc-pascal maillist - <a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a><br>
<a href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal" rel="noreferrer" target="_blank">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal</a><br>
</div></div></blockquote></div><br></div>