Most of our code uses separate assignment statements, such as:
String a = "something";
String b = "something else";
However, some of our code uses multi-assignments, like:
String a = "something", b = "something else";
This is less than ideal style, and these should be changed to separate assignments wherever it makes sense to do so, throughout the code. There may be some places, such as in for loop initialization, where we want to keep the multi-assignment, but most places we don't.
Most of our code uses separate assignment statements, such as:
However, some of our code uses multi-assignments, like:
This is less than ideal style, and these should be changed to separate assignments wherever it makes sense to do so, throughout the code. There may be some places, such as in for loop initialization, where we want to keep the multi-assignment, but most places we don't.