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

leledumbo leledumbo_cool at yahoo.co.id
Mon Feb 1 15:52:10 CET 2016


> Iif sounds good, and would be very useful for converting C code.
> However Iif() sounds very good.
> Me too. Iif is used for many languages.
> +1+1+1+1+1 iif(). :-D

I'm with Silvio. The name "inline if" (iif) describes its semantics clearer
than IfThen, which already has semantics of being regular function with all
parameters evaluated first instead of a syntactic sugar for if-then-else
statement.



--
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/New-feature-IfThen-intrinsic-tp5723735p5723785.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.



More information about the fpc-pascal mailing list