-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512
On 01/21/2015 01:53 AM, Slávek Banko wrote:
Two spaces seem to me sufficient to good readability, while there was no violated clarity.
Writing assignments and conditions in the 'for' without spaces results in inconsistence style with herself. Or, if you propose to remove spaces in assignments and conditions in all code, will make hard to read all code.
For example - without spaces it simply disgust:
for (x=1,y=5; x<10&&y>0; x++,y--) { }
with spaces It's not beautiful, but at least readable:
for (x = 1, y = 5; x < 10 && y > 0; x++, y--) { }
Therefore, the use of two spaces seems to me the least painful. Just my two cents.
I also think the second is more readable than the first. Alternatively we can go for
for (x = 1, y = 5; x < 10 && y > 0; x++, y--)
although it is a waste of vertical space IMO.
cheers Michele