Declare an object inside or outside a loop? April 1, 2023 by Tarik In today’s compilers, no. I declare objects in the smallest scope I can, because it’s a lot more readable for the next guy.