typedef struct

WHY THE EFF, this day in age, on a project that is purely C++ with no chance of needing any sort of compatibility with a C compiler, does someone feel the need to write hideous sht like this?

1
2
3
4
5
typedef struct _SOMETHING
{
    int whatever;
    // more stuff
} SOMETHING;


What fcking year are you writing this in??

Sorry, just felt like venting.

I really wish I knew of a place that was purely for btching about gross coding style, because I work with about 20 other sw engineers, not a single one of which is capable of writing code that doesn't make me want to yack. Keeping my mouth shut is a daily challenge.

EDIT: Maybe this should have gone under Lounge. I'm new here -- are topics like this more appropriate for that section?
Last edited on
You can move your threads between categories.

Maybe C background and reculancy to change their ways: in the end it still works?
I just do not understand why _SOMETHING.
typedef struct SOMETHING {} SOMETHING; would work just as well in both C and C++
Topic archived. No new replies allowed.