2 ms·
> It's not practical to disallow standalone function calls If your language structurally differentiated procedures (i.e., void-returning functions) from (other
by dragonwriter 7y ago
> It's not practical to disallow standalone function calls
If your language structurally differentiated procedures (i.e., void-returning functions) from (other) functions, it would be practical to disallow standalone functions (not procedures), though you might have a modifier to explicitly discard the result of a function that allows it to be standalone.
- zem 7y ago> you might have a modifier to explicitly discard the result of a function that allows it to be standalone. ocaml does this and i find it very annoying, even though i know it's theoretically saving me from accidentally not consuming a return value.