I am rather sceptical to the syntax proposals that we can often read in forum. That is because I have been here for more than ten years already, and I know by now that these proposal come too often and most of these are only syntax sugar, rarely they even care about backwards compatibility. Not many of these can pass the
main conditions listed here.
However, I have to say, after reading all posts in this topic, that this is in my opinion an example of a proposal that is nothing but useful (although not very important).
It does not mean I will much use it, as I myself just don't use initialized variables, but when we have initialization in var section, it is quite natural to be able to initialize several variables to the same value as a group.
I really would not like to see tuple-like initialization introduced, as someone proposed in this thread; I agree with 440bx that that syntax is not very readable, but when it is initialization to one same value, I think it would be just natural feature.
It is not very important, so if it were difficult to implement, I think it would not be worth trouble.
But, after PascalDragon said that it is technically easy to implement, at first this seemed to me a valid argument against the proposed syntax:
The initialization will become rather lost if you have longer variable names and spread them across multiple lines (this coding style is used in the compiler for example):
var
SomeVariableName1,
SomeVariableName2,
SomeVariableName3,
SomeVariableName4,
SomeVariableName5,
SomeVariableName6,
SomeVariableName7,
SomeVariableName8,
SomeVariableName9,
SomeVariableName10: Integer = 255;
However, after I read the 440bx's response:
The initial value can't be "lost" without also "losing" the variable's data type.
I really have to fully agree with 440bx. The initialization won't be lost, you can lose it only if you lose the data type.
So, PascalDragon, I think your argument is weak.
I do not think you should spend much of your time on this, when you have more important things to do, but if it is not hard to implement, please do. I just don't agree with the reason you gave.