4 ms·
(That's cool to hear about clang-format; I've been out the C++ game for a while, except for the occasional nostalgic prog comp.) Well, again, I personally don'
by dilap 9y ago
(That's cool to hear about clang-format; I've been out the C++ game for a while, except for the occasional nostalgic prog comp.)
Well, again, I personally don't think line limit should be part of the code style -- it's really handy to be able to split or not split emacs buffers and have the code spill out to take up the space, wrapping dynamically. If the code hard-wraps, you're just stuck w/ that single decision. It's annoying.
Regarding Go's style more generally: Yeah, my own personal pref would be much denser that gofmt, but I happily submit for the consistency.
I just don't think style really matters that much (within the realm of reasonable, which gofmt certainly is): the important thing is consistency.
(By the way, a nice side-effect of consistency: you can easily grep for a particular thing w/ confidence w/o having to try to take into account all the possible stylistic variations.)