Conversation

Do u ever feel like separating function out values into "the return value" and "parameter out values" was a mistake
11
81
Currently refactoring a moderately sized program that throughout uses filehandles exclusively refer to files, and assumes "invalid file" always means fd<0; to have any file returning a fd return a success bool and write an opaque filehandle to a pointer. It's not fun.
2
12
What if functions had no "return values" and all data output for the function were in the form of named out parameters. Could you still do good-feeling functional programming that way
11
27