Alexander Klenin <kle...@gmail.com>:

> On Sat, Aug 7, 2010 at 03:10, "Vinzent Höfler"
> >
> > But you can mistake the "+=" for a ":=". Replacing one possible reading
> error with another isn't much of an improvement.
> 
> You can also mistake "." for ",", ">=" for "<=", or mix up "<>", "><",
> "<<" and ">>" --
> which are all valid but different symbols in FPC. This is quite a minor
> problem.

Except for the ">=" "<=" the resulting error would not compile in most cases. 
THAT's the difference.

> Code bloat/duplication is much more serious.
> It is usually not just SomeReallyLongVariableNameY, but something like:
> SomeFunctionReturningObject(param1, param2).PointArrayField[i] +=
> FunctionReturningPointOffset(param);
> Try rewriting that without "+=".

Add (SomeFunctionReturningObject (param1, param2).PointArrayField[i],
     FunctionReturningPointOffset (param));

IMO, since the invention of subroutines, the expressive power of operators is 
overestimated. Consistently.


Vinzent.

-- 
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to