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

Maciej Izak hnb.code at gmail.com
Tue Feb 2 10:53:37 CET 2016


2016-02-02 10:38 GMT+01:00 Marco van de Voort <marcov at stack.nl>:

> > - a little different behavior than in other languages (but still
> compatible
> > with Oxygene)
>
> How is it different behaviour from C then? The only practical application
> that I see is in from C conversions (like ++ and --), so that you don't
> have
> to rethink complex expressions that some @($*@$ thought up.
>
> Of course one can find an use for any syntactic sugar, but then we should
> give up making a pascal, and simply declare FPC as the superset of all
> languages.
>

I mean only IIF definition/behavior like in VB. In C exist "?:" conditional
operator, different story.


>
> > - I like &if ;)
>
> I don't see the point. And if a funky character is needed then use another
> one, don't add a third overload to &. (statement to intrinsic instead of
> statement to identifier and octal)


";)" emoticon means joke/not serious. Damn, you are really old fashioned.

the fact is one: iif is good new name for "IfThen" intrinsic.

I don't have any more to say.
-- 
Best regards,
Maciej Izak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160202/87c6d832/attachment.html>


More information about the fpc-pascal mailing list