The reason I use the bsd style is preciesely because it is more standard. It is standard Java coding style, it is standard Apache project coding style, it's standard BSD coding style (obviously). All in all I reckon more people use that style than another.
Discussion (14)
Fewer lines = sexier.
Besides, I can read it just bloody fine. I mean, yeah, when I'm coding for other people, perhaps...
The reason I use the bsd style is preciesely because it is more standard. It is standard Java coding style, it is standard Apache project coding style, it's standard BSD coding style (obviously). All in all I reckon more people use that style than another.
Indentation makes it just as clear IMO.
GNU do it the way they do it because it's easier to parse. And it is.
I like the GNU style a lot... but almost no one uses it outside of GNU.
@Nic:
your right about java. the source is all coded like that. I still think it's less easy to read.
Not to say your wrong about the other things, just that I've only checked java.
Java style is defined by Sun and they've always used K&R/BSD brace style.
Well, I wish I did. I did until this job.
Most braces are useless, blame C for that.
I do this:
But I wish I could do this:
Well, your C makes my eyes cross because of the bad use of spaces, and your wishful thinking example is only parseable if white space is significant.
D'A
On the subject of a claim: Not necessarily apparent to Protagoras, but there exist better uses of my time.
D'A
I'm gonna go out on a limb here and say: moderate nonalignment of brackets is OK, given that everybody involved has a decent syntax highlighter.
disagreeing because I got lazy
"most of the time" is still true.
I generally make it apparent to me. I don't use the style indicated in the description.