[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: the benefits of immutability
Vadim Nasardinov <el-vadimo@comcast.net> writes:
> Perry E. Metzger wrote:
> > His so-called "reason" doesn't explain why StringBuffer is final,
> > too, in any case.
>
> That is correct. I have not made any comments on why StringBuffer is
> final. What would be the relevance of such a discussion to the issue
> at hand?
You explicitly claimed that String was final so that strings could be
immutable. You then carefully ignored it when it was pointed out
StringBuffer is final, and yet is mutable.
--
Perry E. Metzger perry@piermont.com