Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • I'm not sure what you mean by methods of objects usually share a common state, or why you refer to this as a "functional approach". Commented Jan 21, 2017 at 12:12
  • I slightly edited the answer to express it more clearly. I haven't meant to refer to that as a "functional approach", I referred to the "Object oriented" paradigm. In object oriented programming, objects hold a state which is usually mutated by object's methods.Functional world is conceptually different where we try to avoid side effects. Commented Jan 21, 2017 at 14:00