4 ms·
When people say pure functional programming they never mean the entire program is like this. Because if it were your program would have no changing state and n
by ninetyninenine 2y ago
When people say pure functional programming they never mean the entire program is like this.
Because if it were your program would have no changing state and no output.
What they mean is that your code is purely functional as much as possible. And there is high segregation between functional code and non functional code in the sense that state and IO is segregated as much as possible away into very small very general functionality.