[fpc-devel] new features and facilities
David W Noon
david.w.noon at googlemail.com
Thu Oct 8 18:40:25 CEST 2015
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thu, 08 Oct 2015 16:12:56 +0000, Mark Morgan Lloyd
(markMLl.fpc-devel at telemetry.co.uk) wrote about "Re: [fpc-devel] new
features and facilities" (in <mv64m9$95v$1 at 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.noon at googlemail.com (David W Noon)
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iEYEARECAAYFAlYWnHkACgkQogYgcI4W/5R5IwCgz5RvrROIZn26Pn1u1flRIBKH
mIUAn3gyUm9TdTglLkQdYjiI26lSg6ye
=HFIP
-----END PGP SIGNATURE-----
More information about the fpc-devel
mailing list