[fpc-pascal] a proposal about "with" syntax
Sven Barth
pascaldragon at googlemail.com
Sun Mar 17 11:25:05 CET 2013
On 17.03.2013 11:07, Luca Olivetti wrote:
> Al 17/03/13 03:37, En/na Flávio Etrusco ha escrit:
>
>> unfortunate, because IMO the 'with' syntax is one of the most
>> abominable un-pascal things Borland introduced in the language, and
>> *forcing* the AS syntax (but probably with some other keyword like
>> ALIAS) would make it much more palatable.
>
> I checked on google books and it doesn't seem to be a Borland addition
>
> http://books.google.es/books?hl=ca&id=mHSZRZnDp60C&q=with#search_anchor
>
> Texas Instruments' Pascal had an extension of the with statement, IIRC
> it used = instead of AS
>
> With a=VeryLongNameForARecord, b=AnotherRecordWithAVeryLongName do ...
Now THAT is really unpascalish... either ":=" or the already suggested
"as"...
Regards,
Sven
More information about the fpc-pascal
mailing list