[fpc-pascal] some new features to delphi prisem
Jürgen Hestermann
juergen.hestermann at gmx.de
Sun Feb 21 11:41:24 CET 2010
> y := case Other of
> bla : 'hello';
> foo : 'bye';
> baz : 'adius';
> end;
> What do you gain with this?
> Doesn't look much different to
> case Other of
> bla : y := 'hello';
> foo : y := 'bye';
> baz : y := 'adius';
> end;
> Shorter write imho.
Is that realy a reason for adding yet another extension to Pascal?
This is C thinking. I don't care about a word more or less to write
if only the *reading* of source code is easy (and the logic of the
language is clear). But each variant in writing makes it harder to
understand a source code (especially for newbies to whom the
learning curve gets steeper and steeper with each of such 'extensions').
More information about the fpc-pascal
mailing list