Conversation

heres a little snippet . wtf . why do you format your code like that . what

static int
flatpak_run (int      argc,
             char   **argv,
             GError **res_error)
{
  /* ... */
  if (!command->fn)
    {
3
0
1
@fiore "the full thing wouldnt fit within 80 columns so i split it across several vertically aligned lines" absolute insanity
3
0
0
@fiore my stance on this is the hare style guide tbh. i hate how much i like drewdevaultwaer
1
0
1
@coolbean @fiore the full thing *would* fit under 80

they just always split one argument per-line
1
0
2

@coolbean ok but like i agree that you should do that i just disagree with how they did it . look at that if statement wtf

0
0
1
@coolbean @fiore that's the same style a lot of c code (inc. mine) follow
2
0
2
@navi @fiore good! i hate pointlessly aligning things with spaces
1
0
1

@navi @coolbean me too except for function arguments. if they overflow the line id rather have them each in a line (see default rustfmt behaviour)

definitely not with vanity spaces tho

1
0
0
@fiore @navi ok then we're all in agreement that tabs are perfectly fine, right?
1
0
0
@fiore @navi thank fucking god cause this argument has been driving me crazy for actual years. vanity spaces are a plague oh my fucking god
1
0
1
@fiore @coolbean @navi Don't forgot that tabs deserve a few terminating spaces, as a treat.
1
0
0

@coolbean @navi i do use spaces in other situation where i wanna enforce alignment somewhat , but personally i prefere leading tabs for code indentation

0
0
0
@Suiseiseki @fiore @navi im killing you im killing you im killing you gnu style sucks im killing you im killing you im killing you im ripping out your organs im killing you im killing you im killing you im killing you
1
0
1
@coolbean @fiore @navi I don't even use GNU style, but I'm considering setting c-default-style in my init.el back to the default.
0
0
0
@haematophage @fiore that ones a recommendation. due to the lack of vanity spaces you can just set it to whatever you want. i like 6 tbh
0
0
1

miss @fiore : like it wouldn't format that like that but it does vertically aligning stuff , it makes the code look nicer . tbh the only two things it disagrees with is putting the return type and the opening brackets on seperate lines

1
0
1

@minekpo1 look at that opening bracket on the if statement.. half indented like that .

0
0
0