cgci = XCreateGC(
display,
window,
GCForeground | GCBackground | GCFont,
&(XGCValues) {
.foreground = ccwhite,
.background = ccblack,
.font = cfont->fid,
}
);
[1] C++ requires the fields to be initialized in order; C doesn't have this restriction.[1] From a C++ is just a C superset perspective. In C compound literals are awesome.
$ cd /usr/src/linux
$ rg ' class;'
vmlinux.h
8541:struct class;
13515: long unsigned int class;
16416: unsigned int class;
16917: u8 class;
17351: u8 class;It's not impossible, but the Linux kernel is quite a complex project.
Which, I mean... it's the Internet. That's kinda expected. But if there's something specific you're seeing, could you link to it? I'm curious as well what the "stick to C" crowd's reasons are. "C plus this one feature of C++" seems rather defensible at a glance (ignoring the social difficulty in choosing which feature), but I'm sure it's much more complicated than that in practice.
There's ample evidence that it'll build just a fast as C there, so it's not an issue in this context, and that both can build quickly with care. That's kinda the point of C++: you can write plain C code plus [this one thing] and you basically don't pay for the rest, and it generally achieves that.
It’s all in the thread, I don’t know how GP missed it.