-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 08 Oct 2015 16:12:56 +0000, Mark Morgan Lloyd
(markmll.fpc-de...@telemetry.co.uk) wrote about "Re: [fpc-devel] new
features and facilities" (in <mv64m9$95v$1...@pye-srv-01.telemetry.co.uk>):

> Ondrej Pokorny wrote:
> 
> As Michael has said, adding an extra  else  or for that matter 
> otherwise  would be a problem.
> 
>> And what about the inline if? That should be backwards compatible
>> at a first glance. And it would be a fun thing because the Delphi
>> community has asked for it for many years and Embarcadero looks
>> like they won't add it at all :)
> 
> Inline if is an ALGOL feature, and it's inexplicable why it's never
> been in Pascal.

Indeed, it is even more succinct in C/C++:

   x = <boolean> ? <then part> : <else part>;

This was taken directly from ALGOL 60 and remains a very elegant feature.

However, Jensen & Wirth excluded it from the original Pascal Report.
- -- 
Regards,

Dave  [RLU #314465]
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
david.w.n...@googlemail.com (David W Noon)
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEARECAAYFAlYWnHkACgkQogYgcI4W/5R5IwCgz5RvrROIZn26Pn1u1flRIBKH
mIUAn3gyUm9TdTglLkQdYjiI26lSg6ye
=HFIP
-----END PGP SIGNATURE-----
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to