Open in app
Anup Cowkur
2.9K Followers
About

Sign in

2.9K Followers
About
Open in app
Anup Cowkur

Anup Cowkur

Feb 23, 2017·1 min read

Ah, you didn’t mention earlier that it would be a shared mutable object. A mutable object in and of itself wouldn’t cause the function to be impure if the function does not modify it. If the mutable object is shared among other parts of the program however, then the function cannot guarantee referential transparency and it would be impure.

Anup Cowkur

Head of UX Engineering at GOJEK

What if we pass a mutable object as argument to a function and the function reads this mutable…
1

Saurabh.v

More from Anup Cowkur

Head of UX Engineering at GOJEK

More From Medium

How to Survive Remote Work for Engineering Managers and Tech Leads

Anup Cowkur in Better Programming

14 Disgusting Facts About President Thomas Jefferson’s Private Life

Sal in Lessons from History

On Dating at Middle Age: Where are All the Grown-Up Men?

Debbie Weiss in P.S. I Love You

12 Things I Stole From People More Successful Than Me

Vincent Carlos in Mind Cafe

It’s Okay, Folks  —  Ted Cruz Already Announced his Retirement Weeks Ago

Mickey Desruisseaux

6 Core Exercises Everyone Should Be Doing Every Day

Joxen

A Mental Trick to Make Any Task Less Intimidating

Laura Vanderkam in Forge

The Uncut History of Male Circumcision

Ben Kageyama in History of Yesterday

About

Help

Legal

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store