[fpc-pascal] Syntax changes suggestions
Reimar Grabowski
reimgrab at web.de
Thu Jul 19 02:44:13 CEST 2018
On Wed, 18 Jul 2018 14:33:51 -0600
Ryan Joseph <ryan at thealchemistguild.com> wrote:
> They probably wanted something like this:
>
> n := if x <> 0 then 10 else 20;
>
> Not too crazy in my opinion.
Only if you think that changing a statement to an expression is not 'too crazy'.
Btw in Kotlin if is an expression:
val n = if (x != 0) 10 else 20
But in pascal it's not and it's IMHO no small change to make it one.
R.
More information about the fpc-pascal
mailing list