On 7/23/11 10:51 PM, Johnathan Meehan wrote:
As for parameters, I'm not fond of working on them directly (or
inadvertently) as the intention of the caller is not necessarily known.
I think personally that if a parameter is to be modified, it should be
an exception that is documented clearly to make sure the other guy is
not surprised.

I personally think that this issue is clearly addressed by the use of immutable objects. Once all the classes you draft are immutable, using final for parameters is, well, totally useless.


--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com

Reply via email to