When emptying an array, is there any difference that one should be aware of between the following alternatives?
Assuming arr is a TArray<string>:
SetLength(arr, 0);
or
arr := [];
I'm guessing they are the same, but my Delphi is a bit rusty and I seem to recall subtle "peculiarities" coming back to haunt me after months of seemingly working code before...