Are side effects everything that cannot be found in a pure function?
Is it safe to say that the following dichotomy holds: Each given function is either pure or has side effects If so, side effects (of a function) are anything that can't be found in a pure function. This very much depends on the definitions that you choose. It is definitely fair to say that a function is pure or impure . A pure function always returns the same result and does not modify the environment. An impure function can return different results when it is executed repeatedly (which can be caused by doing something to the environment). Are all impurities side-effects? I would not say so -