functional programming, one method often calls another, for example:
function test(){
a();
return b();
}
but personally, it seems that although it reduces memory footprint, it is semantically unreasonable. For example, here, I don"t need a return
return value.
so how to choose? Or is there a better way? Thank you for answering the questions