Re: use of this keyword in variable access

2010-03-30 Thread Adrian Crum
Adam Heath wrote: Adrian Crum wrote: I like using the this keyword because it makes the scope clear. I find it makes it easier for me to understand someone else's code. That's the compilers job, don't try to do an end run around it. Excuse me?? int var2 = someMethod(someValue); The scope o

Re: use of this keyword in variable access

2010-03-30 Thread Adam Heath
Adrian Crum wrote: > I like using the this keyword because it makes the scope clear. I find > it makes it easier for me to understand someone else's code. That's the compilers job, don't try to do an end run around it.

Re: use of this keyword in variable access

2010-03-30 Thread Jacques Le Roux
From: "Adam Heath" What is the policy on use of this to access the variables and methods in ofbiz? It's not entirely consistent across the code base. I would prefer not to use this when it isn't needed, as it introduces an extra keyword into the code. +1 Jacques

Re: use of this keyword in variable access

2010-03-30 Thread Scott Gray
I'm guessing it also gets used a lot because of IDE code completion. Regards Scott On 30/03/2010, at 9:56 AM, Adrian Crum wrote: > I like using the this keyword because it makes the scope clear. I find it > makes it easier for me to understand someone else's code. > > -Adrian > > Adam Heath w

Re: use of this keyword in variable access

2010-03-30 Thread Adrian Crum
I like using the this keyword because it makes the scope clear. I find it makes it easier for me to understand someone else's code. -Adrian Adam Heath wrote: What is the policy on use of this to access the variables and methods in ofbiz? It's not entirely consistent across the code base. I w

use of this keyword in variable access

2010-03-30 Thread Adam Heath
What is the policy on use of this to access the variables and methods in ofbiz? It's not entirely consistent across the code base. I would prefer not to use this when it isn't needed, as it introduces an extra keyword into the code.