Comment Comment by mawfig "A pure function is one without any side-effects."https://ocaml.org/docs/functional-programming"V functions are pure by default, meaning that their return values are a function of their arguments only, and their evaluation has no side effects (besides I/O)."https://github.com/vlang/v/blob/master/doc/docs.md#pure-func...It sure sounds to me like V is trying to claim that functions can be pure while still performing I/O. parent mawfig 4 years ago
https://ocaml.org/docs/functional-programming
"V functions are pure by default, meaning that their return values are a function of their arguments only, and their evaluation has no side effects (besides I/O)."
https://github.com/vlang/v/blob/master/doc/docs.md#pure-func...
It sure sounds to me like V is trying to claim that functions can be pure while still performing I/O.