Я так же хотел чтобы это было в паскале. Но, чем дальше я занимаюсь программирование, тем более понятно, что тут будет множество подводных камней. И код:
var
a: integer = 3;
b: integer = 3;
...
должен быть идентичен коду:
var
a, b: integer = 3;
...
Но если взглянуть на это с другой стороны, то многие не будут понимать что происходит. И код:
var
a: integer;
b: integer = 3;
...
не будет идентичен коду
var
a, b: integer = 3;
...
хотя пользователь во втором случае захочет выделить именно значение "b = 3", но не "a".
А таких ситуаций будет больше, чем при той ситуации, когда так объявлять переменные нельзя.
google translate:
I also wanted it to be in pascal. But, the further I do programming, the more it becomes clear that there will be many pitfalls. And the code:
var
a: integer = 3;
b: integer = 3;
...
should be identical to the code:
var
a, b: integer = 3;
...
But if you look at it from the other side, then many will not understand what is happening. And the code:
var
a: integer;
b: integer = 3;
...
will not be identical to the code
var
a, b: integer = 3;
...
although the user in the second case will want to highlight exactly the value "b = 3", but not "a".
And there will be more such situations than in the situation when it is impossible to declare variables in this way.