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.
via blogs.msdn.com
Eric Lippert reiterates a Clean Code practice.