DEV Community

Discussion on: Functional programming basics part 1: Pure function

Collapse
 
ysael profile image
ysael pepin

Yes I would say that Luka is right.

And would add that for me, making a function that returns void is a way of declaring that that particular function is impure and will most likely be made to do side effects stuff.... cause we need to do them sometimes:)