4 ms·
Agreed. The pseudo-code had it in a more readable style. If it must be compressed onto one line then a = 0; b = (0, 0); c = float('infinity') is prefera
by ralph 18y ago
Agreed. The pseudo-code had it in a more readable style. If it must be compressed onto one line then
a = 0; b = (0, 0); c = float('infinity')
is preferable if a, b, and c are logically unrelated compared to
a, b, c = 0, (0, 0), float('infinity')
especially as the list gets longer. Why should the reader first count to find where variable `foo' is on the left-hand side before then counting the same number of places on the right?