On Wed Mar 1 12:26:25 2023 +0000, Giovanni Mascellani wrote:
Also, doing string comparisons is at risk of being slower than what you gain. Rather, something like `if (var1 == var2) break;` should do a better job.
Ah, the purpose of this check is not optimizing, but avoiding to print two error messages for each pair of overlapping variables (a, b), and (b, a).
I also thought on checking one side of the collision on each of the two iterations the pair appears. But that stills shows a double message if they completely overlap one another.