Inline variables declaration is a feature introduced in Delphi Rio 10.3. What is it?
In short, it is the possibility to declare a variable in any line of your code. That is, you can declare a variable this way, within the begin..end block:
procedure Test;
begin
var I: Integer;
I := 22;
ShowMessage (I.ToString);
end;
A lot of people already understood how this feature works, but did not understand why it is interesting. In this article, I will show you this new feature with a focus on the advantages it brings.