Jon said:
Thanks Lasse, Jon Skeet and Ignacio on your comments on readability - I
agree, I'm not going to use it.
What are your thoughts on func(var, out arr2[i++]) where i is only
referenced once?
On Jon Skeet's comment: "this won't get past any worthwhile code review"
I don't have code reviews since I'm actually an electronics designer, not
a programmer. Sometimes though I need to write a relatively short
programme eg to test some theory. Programmers in the company I work for
do have code reviews, but I keep quiet about my programmes!
I'm replying a bit late here, busy with other things and all.
To be honest, I tend to not mix the ++ and -- syntax in with other things
if I can help it, the reason being that anything that makes me stop,
rewind a line or a couple of code points and re-read to understand it
interrupts the flow of the code, in my mind.
It's like reading a "heavy" book (doubt "heavy" is the right word, except
in norwegian), where you sometimes have to stop reading and re-read an
entire sentence, or worse, paragraph, just to understand what the heck
that the text is about.
I do use ++ and -- syntax though, but unless the expression becomes
*really* hard to write without it inside it, I tend to split it out and if
needs be, use a temporary variable.
It then becomes much easier to see if it occurs before the next statement,
or after the previous one.