Full threadFoober223·Declaring vars at the top of a function makes it easier to see at a glance how much stack memory will be used. But beyond that I don't see any advantage.View on HN