DEV Community


Discussion on: Pure vs Impure Functions

sanspanic profile image
Sandra Spanik Author • Edited

Great, I want to be exact in the language I use so thank you for commenting :) I edited “considered pure” to “typically associated with pure functions”.

As for the definition, I found it elsewhere. Before I update it, let me try and see if I’m parsing what you’re saying correctly: you’re saying that while my definition describes some side-effects, it doesn’t describe ALL side-effects, because there are some which are indeed related to computing the final output. Is that right?

lukaszahradnik profile image
Lukáš Zahradník


Yes, that's what I am saying. For example fetching data and then using them for some computation.