[fpc-pascal] a proposal about "with" syntax

Xiangrong Fang xrfang at gmail.com
Mon Mar 18 08:36:13 CET 2013


Alternatively, how about just use SPACE to separate the token? i.e.:

with SomeObject o1, SomeOtherObject o2 do....

Because you need a COMMA for 2 or more expressions in with, and SPACE is
not valid in token?


2013/3/18 Sven Barth <pascaldragon at googlemail.com>

> Am 18.03.2013 04:17 schrieb "Xiangrong Fang" <xrfang at gmail.com>:
>
> >
> > OK, I see. However I feel "=>" a very "un-pascal" thing, remind me of
> PHP.  :-)   I guess "as" would also complicate the parser?
>
> As already written by others: "as" is one of the worst tokens you can
> choose for this, as it is perfectly legal to do a typecast in an expression
> (which includes the expression for with).
>
> Regards,
> Sven
>
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20130318/e4823ea6/attachment.html>


More information about the fpc-pascal mailing list