3 ms·
bracket_fun(){ stuff; } or bracket_fun() { stuff; }
by krisgee 13y ago
bracket_fun(){
stuff;
}
or
bracket_fun()
{
stuff;
}
- NickNameNick 13y agowhat, no tabs vs spaces? and is a tabstop 2,3,4,6 or 8 spaces wide?
- dnautics 13y agooh man I learned allman style as a high schooler, and it makes me sad that certain constructs in javascript (return) do not allow you to do this, and that gofmt forces you to use K&R...
- krisgee 13y agoI sympathize with you. I learned allman style first because that's what my java programming book used. When I started learning C, which is pretty K&R dominated, I found it really hard but got used to it and now when I go back and look at that java book it's like constantly stalling in a standard shift car.