It just easier to read, shorter code, less bugs.
I agree.
10 PRINT "It's VB for Android - not C/C++"
20 GOTO 10
I completely disagree with that. To my eyes, these shortcuts never made the code easier to read. It's exactly the contrary. Ask to a beginner what's the difference between --i and i--. It's not obvious or intuitive. I'm tired to see that in C and Java codes.
Entry[Posn++] = Value
Entry[Posn++] = Value2
Entry[Posn++] = Value3
Entry[Posn++] = Value4
Entry[Posn] = Value
Posn = Posn + 1
Entry[Posn] = Value2
Posn = Posn + 1
Entry[Posn] = Value3
Posn = Posn + 1
Entry[Posn] = Value4
Posn = Posn + 1
ByteStream(BPosn++) = Esc
ByteStream(BPosn++) = 42 ' Start of command
ByteStream(BPosn++) = 98 ' Command type
DataString = Width ' Width of box
DataStringBytes = DataString.GetBytes("UTF8") ' convert length to bytes
For I = 0 to DataString.Length - 1
ByteStream(I + BPosn) = DataStringBytes(I) ' move in the length
next
BPosn += I ' move to the next position for
ByteStream(BPosn++) = 87 ' Terminate the data length
'-------------------------------------------------------------
' Now put in the data we want to draw
'-------------------------------------------------------------
I completely disagree with that. To my eyes, these shortcuts never made the code easier to read. It's exactly the contrary. Ask to a beginner what's the difference between --i and i--. It's not obvious or intuitive. I'm tired to see that in C and Java codes.
It's a cumbersome way to fill an array. You should do instead (and that does not require to compute each index):Difference in two characters? Maybe in that poor example.
What about when you are needing to fill an index
B4X:Entry[Posn++] = Value Entry[Posn++] = Value2 Entry[Posn++] = Value3 Entry[Posn++] = Value4
Becomes this pain in a butt
B4X:Entry[Posn] = Value Posn = Posn + 1 Entry[Posn] = Value2 Posn = Posn + 1 Entry[Posn] = Value3 Posn = Posn + 1 Entry[Posn] = Value4 Posn = Posn + 1
The second makes the code SO sloppie
I don't think you really understood what I said, but it doesn't matter: I am not opposed to adding these operators to B4A.I also disagree with Informatix on this. "Ask a beginner" so we should write code to handle the LOWEST person on the pole? You say it is NOT obvious or intuitive, well then they need to read the manual or take a real coding course. I am sure your eyes see and translate the code without a thought.
int i = 2;
int j = 1;
int k = 3;
j *= i++;
k *= ++i;
ByteStream(BPosn+0) = Esc
ByteStream(BPosn+1) = 42' Start of command
ByteStream(BPosn+2) = 98' Command type
DataString = Width ' Width of box
DataStringBytes = DataString.GetBytes("UTF8") ' convert length to bytes
For I = 0 to DataString.Length - 1
ByteStream(BPosn + 2 + I) = DataStringBytes(I) ' move in the length
next
ByteStream(BPosn+2+I+1) = 87' Terminate the data length
BPosn = BPosn + 2 + I + 1' move to the next position for