Thx
/c
----- Original Message -----
From: "Peter Donald" <[EMAIL PROTECTED]>
To: "Avalon framework users" <[EMAIL PROTECTED]>
Sent: Friday, December 06, 2002 4:45 AM
Subject: Re: Method parameters
On Fri, 6 Dec 2002 08:38, Colin Chalmers wrote:
> I see in most (all?) methods the parameters are set to final, for example
> see below. What's the advantage(s) of this? And if it is so advantagous
why
> is it not done more often?
It is generally recomended that pass-by-value parameters to methods are not
reassigned in the method/function body because it can cause uneeded
complexity when reading code. The advantage of using final to mark these
parameters is that it enforces this rule.
--
Cheers,
Peter Donald
Sufficiently advanced science is
indistinguishable from magic"
-- Arthur C. Clarke
--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>