Fabulous Adventures In Coding : Style follows semantics

To me, this comes down to the question “is Bar useful solely for obtaining its value, or also for its side effects?” The stylistic choices should typically be driven by a desire to clearly communicate the semantics of the program fragment.

Eric Lippert reiterates a Clean Code practice.