This very issue is one of my pet peeves of working in Java/C, because extract-function refactoring is severely inhibited by having only 1 return value, and it forces you to pass in mutable values ...
I seem to recall some sort of mechanism that someone coded in C++ to prevent discarding the return value of a function. But I can't remember what it was, or quite for certain if I'm remembering it ...
一些您可能无法访问的结果已被隐去。
显示无法访问的结果