3 ms·
Interesting definition of 'pure functions': Pure functions by default V functions are pure by default, meaning that their return values are a func
by ReleaseCandidat 5y ago
Interesting definition of 'pure functions':
Pure functions by default
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-functions-by-default https://github.com/vlang/v/blob/master/doc/docs.md#pure-func...
- WithinReason 5y agoYou mean the "besides I/O" part?
- ReleaseCandidat 5y agoYes. A 'system language' with pure functions would be, well, unusual.