Re: [PATCH 3/4] Dont use the same variable for different things
- From
João P. Sampaio <jpmelos@jpmelos.com>
- Date
- Feb 17, 2011, 02:36 UTC
- Message-ID
- <AANLkTim3t3JTFh668YK+GtS+iRDZLjnhS7bMUGW1fim+@mail.gmail.com>
- In-Reply-To
- <7v62sjfna2.fsf@alter.siamese.dyndns.org>
On Wed, Feb 16, 2011 at 23:44, Junio C Hamano <gitster@pobox.com> wrote:
> But more important question is why? > > What benefit are we getting by almost doubling the stack footprint of this > function? What problem are you fixing?
Well, in matters of code readability and maintainability, it's best to use different variables for different matters...
Nowadays, memory isn't really an issue anymore, is it? I think it's valid to make code more readable, if memory cost isn't absurd.
-- João Paulo Melo de Sampaio Computer Engineering Student @ UFSCar Website: http://www.jpmelos.com Twitter: http://twitter.com/jpmelos (@jpmelos)