On Fri, 2011-02-18 at 12:46 +0530, Vinod Parthasarathy wrote:
Note that the numbers list has not changed even after calling'reverse'
method.YMMV.
The general consensus is that mutability is bad for programming.
There is both a bad and a good side to mutability. Mutability can give
rise
to faster running programs than their immutable counterparts in
certain
situations. Space complexity is also reduced in mutable programs. The
downside is that programming becomes error-prone and additional care
is
needed on the programmer's part.