MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/javascript/comments/4zukyt/is_your_javascript_function_actually_pure/d6zi2e6/?context=3
r/javascript • u/vinnl • Aug 27 '16
48 comments sorted by
View all comments
2
What? You mean overwriting default object behaviour may cause unexpected things to happen, such as making your pure functions impure? You might as well argue that your function could be impure because code somewhere else might overwrite it.
2
u/[deleted] Aug 28 '16
What? You mean overwriting default object behaviour may cause unexpected things to happen, such as making your pure functions impure? You might as well argue that your function could be impure because code somewhere else might overwrite it.