Immutability and Python

Neal Becker ndbecker2 at gmail.com
Tue Oct 30 16:45:33 EDT 2012


rusi wrote:

> On Oct 29, 8:20 pm, andrea crotti <andrea.crott... at gmail.com> wrote:
> <snipped>
>> Any comments about this? What do you prefer and why?
> 
> Im not sure how what the 'prefer' is about -- your specific num
> wrapper or is it about the general question of choosing mutable or
> immutable types?
> 
> If the latter I would suggest you read
> http://en.wikipedia.org/wiki/Alexander_Stepanov#Criticism_of_OOP
> 
> [And remember that Stepanov is the author of C++ STL, he is arguably
> as important in the C++ world as Stroustrup]

The usual calls for immutability are not related to OO.  They have to do with 
optimization, and specifically with parallel processing.




More information about the Python-list mailing list