About 2,600,000 results
Open links in new tab
  1. What is immutability and why should I worry about it?

    What is Immutability? Immutability is applied primarily to objects (strings, arrays, a custom Animal class) Typically, if there is an immutable version of a class, a mutable version is also available. For …

  2. java - What is meant by immutable? - Stack Overflow

    Nov 11, 2008 · What exactly does immutable mean - that is, what are the consequences of an object being mutable or immutable? In particular, why are Java's Strings immutable? My understanding is …

  3. Pros. / Cons. of Immutability vs. Mutability - Stack Overflow

    Dec 8, 2009 · 6 Immutability has, for example, benefits in muti-threaded programs. As immutable objects cannot change their state after construction, you can safe share them across any number of …

  4. oop - Mutable vs immutable objects - Stack Overflow

    Nov 2, 2018 · Immutable Objects vs. Immutable Collections One of the finer points in the debate over mutable vs. immutable objects is the possibility of extending the concept of immutability to …

  5. Why is immutability so important (or needed) in JavaScript?

    Dec 21, 2015 · 281 I am currently working on React JS and React Native frameworks. On the half way road I came across Immutability or the Immutable-JS library, when I was reading about Facebook's …

  6. Why do immutable objects enable functional programming?

    Aug 31, 2012 · 0 I've read all the answers and they don't satisfy me, because they mostly talk about "immutability", and not about its relation to FP. The main question is: Why do immutable objects …

  7. immutability - What is the difference between stateless and immutable ...

    Jan 26, 2017 · I often hear the term "Stateless" and "Immutable". For example, HTTP is a stateless protocol, and a String object is an immutable object. But I have a hard time grasping the difference …

  8. immutability - What does "immutable variable" mean in functional ...

    I'm new to functional programming, and I don't understand the concept of immutability; e.g. an immutable variable. For example, in Standard ML (SML): val a = 3 val a = a + 1 The second line …

  9. Why are integers immutable in Python? - Stack Overflow

    May 31, 2016 · 20 What are the design decisions to make numbers immutable in Python? There are several reasons for immutability, let's see first what are the reasons for immutability? 1- Memory …

  10. immutability - Check for mutability in Python? - Stack Overflow

    Dec 8, 2010 · 19 There isn't actually any such thing as mutability or immutability at the language level in Python. Some objects provide no way to change them (eg. strings and tuples), and so are effectively …