Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: Immutability and Python

Reply
Thread Tools

Re: Immutability and Python

 
 
andrea crotti
Guest
Posts: n/a
 
      10-29-2012
2012/10/29 andrea crotti <(E-Mail Removed)>:
>>

>
> Well sure but it doesn't modify the first object, just creates a new
> one. There are in general good reasons to do that, for example I can
> then compose things nicely:
>
> num.increment().increment()
>
> or I can parallelize operations safely not caring about the order of
> operations.
>
> But while I do this all the time with more functional languages, I
> don't tend to do exactly the same in Python, because I have the
> impression that is not worth, but maybe I'm wrong..



By the way on this topic there is a great talk by the creator of
Clojure: http://www.infoq.com/presentations/Value-Values
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Immutability and Python andrea crotti Python 8 11-08-2012 07:38 AM
Re: Immutability and Python Paul Rubin Python 7 10-29-2012 11:14 PM
Re: Immutability and Python Terry Reedy Python 0 10-29-2012 05:48 PM
Re: Immutability and Python Mark Lawrence Python 0 10-29-2012 03:55 PM
Re: Immutability and Python andrea crotti Python 0 10-29-2012 03:44 PM



Advertisments