-
Embedded assignments
I was advised against using embedded assignments, such as the following:
printf("area equals %f", area = length * width);
I certainly understand the point of not using such a construction in the many cases where the clarity of the code to the reader might suffer, but personally, in SOME cases, I find it easier to read these types of assignments, much like it's sometimes more clear to write one long sentence, rather than to break up related ideas into two separate sentences. I was wondering whether there were any functional reason OTHER than readability that it would be a bad idea to use embedded assignments. Thanks ahead for your help!
-