Doesn’t GNU have this weird half tabs braces tho?

|
nocturn9x 2022-07-31 17:17:38
Heretic people all over the world have claimed that this inconsistency is … well … inconsistent, but all right-thinking people know that (a) K&R are right and (b) K&R are right. Besides, functions are special anyway (you can’t nest them in C).
ChrisCromer 2022-07-31 17:17:41
@nocturn9x calling the kettle black
nocturn9x 2022-07-31 17:17:43
this is what the doc says
lanciagreggori 2022-07-31 17:17:45
nocturn9x 2022-07-31 17:17:14
it’s cringe, don’t do it

it’s based, will keep using it

nocturn9x 2022-07-31 17:17:50
die.
nocturn9x 2022-07-31 17:17:50
lanciagreggori 2022-07-31 17:17:45
it’s based, will keep using it

no

nocturn9x 2022-07-31 17:18:11
nocturn9x 2022-07-31 17:17:38
Heretic people all over the world have claimed that this inconsistency is … well … inconsistent, but all right-thinking people know that (a) K&R are right and (b) K&R are right. Besides, functions are special anyway (you can’t nest them in C).

I have an excuse to force them in the style guide of my language at least, since you can nest them in Peon :333

qontinuum 2022-07-31 17:18:18
Also put the return type alone on a line sars
Spektrum_light 2022-07-31 17:18:25
I am lost
ChrisCromer 2022-07-31 17:18:34
I myself do prefer the opening curly brace on the same line. Not going to use your made up word @nocturn9x .
nocturn9x 2022-07-31 17:18:43
ChrisCromer 2022-07-31 17:18:34
I myself do prefer the opening curly brace on the same line. Not going to use your made up word @nocturn9x .

uhm

nocturn9x 2022-07-31 17:18:48
kernel brace is not for that kind of style
nocturn9x 2022-07-31 17:18:56
I didn’t make up any word for that because it already exists
Spektrum_light 2022-07-31 17:18:56
are we talking about if they’re called kernel braces or curly braces or the placement of braces
lanciagreggori 2022-07-31 17:18:57
lanciagreggori 2022-07-31 17:17:45
it’s based, will keep using it

It’s also the style GNU recommends

nocturn9x 2022-07-31 17:18:59
it’s called the right way
nocturn9x 2022-07-31 17:19:06
lanciagreggori 2022-07-31 17:18:57
It’s also the style GNU recommends

ever looked at glibc?

nocturn9x 2022-07-31 17:19:08
It’s retarded
lanciagreggori 2022-07-31 17:19:17
nocturn9x 2022-07-31 17:19:08
It’s retarded

Like what kind?

nocturn9x 2022-07-31 17:19:18
Spektrum_light 2022-07-31 17:18:56
are we talking about if they’re called kernel braces or curly braces or the placement of braces

the placement

nocturn9x 2022-07-31 17:19:31
lanciagreggori 2022-07-31 17:19:17
Like what kind?

why can a function that tells me if a character is alphanumeric segfault

nocturn9x 2022-07-31 17:19:34
only the GNU gods know
ChrisCromer 2022-07-31 17:19:34
nocturn9x 2022-07-31 17:18:43
uhm

You have no style, will ignore.

qontinuum 2022-07-31 17:19:38
lanciagreggori 2022-07-31 17:18:57
It’s also the style GNU recommends

Doesn’t GNU have this weird half tabs braces tho? Or is it BSD?

nocturn9x 2022-07-31 17:19:41
but the musl version doesn’t
nocturn9x 2022-07-31 17:19:53
because the musl version is, correctly, a 1 line function
nocturn9x 2022-07-31 17:20:06
the GNU one, for some god forsaken reason, is unholy and complicated
ChrisCromer 2022-07-31 17:20:24
Spektrum_light 2022-07-31 17:18:56
are we talking about if they’re called kernel braces or curly braces or the placement of braces

Yes

lanciagreggori 2022-07-31 17:20:45
qontinuum 2022-07-31 17:19:38
Doesn’t GNU have this weird half tabs braces tho? Or is it BSD?

GNU also recommends it, its 2 spaces actually, but yeah it also qualifies as a half tab

nocturn9x 2022-07-31 17:20:57
https://drewdevault.com/2020/09/25/A-story-of-two-libcs.html
nocturn9x 2022-07-31 17:21:00
there, found it
qontinuum 2022-07-31 17:21:35
lanciagreggori 2022-07-31 17:20:45
GNU also recommends it, its 2 spaces actually, but yeah it also qualifies as a half tab

I mean, there is a style where braces are never aligned with any text
Not sure we are speaking about the same thing

Spektrum_light 2022-07-31 17:21:54
this whole argument is a mess
nocturn9x 2022-07-31 17:22:13
nocturn9x 2022-07-31 17:20:57
https://drewdevault.com/2020/09/25/A-story-of-two-libcs.html

makes me crack every time

qontinuum 2022-07-31 17:22:19
Spektrum_light 2022-07-31 17:21:54
this whole argument is a mess

You are just too drunk

|