| What they mean is functions and data are separate, emulating a more functional paradigm and less mutable state. The functions are kept pure and the data is kept pure. As opposed to an object oriented programming style in which data and functions share the same object and create bug ridden state machines thats not as easy to reason about. Some further explanation about this: https://www.goodreads.com/quotes/702062-immutable-objects-ar... a semi-nuanced discussion: https://www.reddit.com/r/scala/comments/ejwsp1/is_mutability... you can just Google mutable state to find more info. separating your data structures and functions in many cases will make your code cleaner and more bug free. |
Your first link's first sentence's first two words are "Immutable objects". No problem there. It doesn't conflate objects with mutability.