[fpc-devel] Proposal: Enhanced replacement for assignment operators
Paulo Costa
paco at fe.up.pt
Fri Aug 6 13:36:43 CEST 2010
On 06/08/2010 06:19, Michalis Kamburelis wrote:
>
> This is more about
>
> SomeReallyLongVariableNameX += 10;
>
> being nicer to read than
>
> SomeReallyLongVariableNameX := SomeReallyLongVariableNameX + 10;
>
> You don't have to spend time realizing that it's the same variable (not
> e.g. SomeReallyLongVariableNameY) if you read the 1st form.
On the other side
SomeReallyLongVariableNameX += SomeReallyLongVariableNameY - 1;
is too much similar (visually) to
SomeReallyLongVariableNameX := SomeReallyLongVariableNameY - 1;
:(
(You can't please everyone...)
Paulo
More information about the fpc-devel
mailing list