Trying to write in same number of lines without losing clarity?
B4X: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 <--- this line is too compact, for me ByteStream(BPosn + 2 + I + 1) = 87 ' Terminate the data length <--- now i like it ^_^ BPosn = BPosn + 2 + I + 1' move to the next position for
[LET] variable = expression
[LET] variable += expression
[LET] variable -= expression
[LET] variable *= expression
[LET] variable /= expression
[LET] variable \= expression
[LET] variable &= expression
[LET] variable AND= expression
[LET] variable OR= expression
[LET] variable EQV= expression
[LET] variable IMP= expression
[LET] variable MOD= expression
[LET] variable XOR= expression
for(int i = 0; i < 10; i++) {
}
Dim i as int
for i = 0 to 10
next
Please remain very careful.Adding features to a programming language should be done very carefully as it is a one way direction. You cannot later remove them.
Agree 100%Please remain very careful.
I'm really not conviced that saving a few keystrokes will be a big improvement.
A clear and meaningful code is much more precious than these shortcuts, just my old programmer opinion.
uhm... 22 4 + more sense than 22 + 4 ...
then my teacher of the elementary schools did not know it
Have you seen any performance issues? In almost all cases the performance is the same as (well written) Java apps.It's one of the downsides of using a RAD tool. It's a trade off between speed of development and the efficiency of the program produced.
The syntax is written that way because is easier to read and understand the code, that's way is Beginner's language.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?