3 ms·
Code is ugly or beautiful based on what you're used to seeing. This is the reason for the endless style debates: the way you're used to working just looks bette
by edanm 17y ago
Code is ugly or beautiful based on what you're used to seeing. This is the reason for the endless style debates: the way you're used to working just looks better to you.
Whenever I find a new way of working which has actual benefits, I just use it until it looks better to me.
In this case, it looks like there are real benefits to the comma-first method, so I plan on getting used to it.
P.S. By the way, the things you're talking about (clear, accurate algorithms) are not the things the author is talking about. He's talking about style, you're talking about substance. In your example, changing the style to C++ style brackets instead of K&R wouldn't make your point any less valid.