Egregoros

Signal feed

Timeline

Post

Remote status

Context

10
I haven't used C++ in a long time but I've never seen or heard of this style of declaration. Especially since "union" is a reserved word in C.

Normally, functions are declared by stating their return type, followed by the name and the parameter list, plus the function body (the latter two is what makes them functions). There is no special keyword required, and the double arrow notation isn't a thing either. I'm only aware of a single arrow (to access members of a pointer) and the shift operator (>>), but of course C++ does allow you to overload operators and I believe even declare your own.
I for one have never liked C++.

Don't much care for OOP in general either. Esp not using "patterns" fucking everywhere.
"Object-oriented programming is an exceptionally bad idea which could only have originated in California." - Dijkstra

C is a fine language.
We had "objects" in C they are called structs and guess what libtard, we can have deep inheritance to via macros or simple inheritance by putting a pointer to another struct in your child object

The tricks aren't even that complicated either!!

Replies

14
Concept yes but unless you are implementing a really performance bottleneck thing it really isn't necessary.

You just need to know:

1. How big is the thing I want to store
2. How long do I need to keep it in memory

And then you can figure out your data types and if you just malloc it or make an arena or whatever.

You don't really need to know about a register for that part unless youre using a debugger, and addressing is so simple I dont even know why you mentioned it

Yes, it makes sense why they want that, as I started with python, but when I just restructure it in my mind "a function is not a machine that you load and unload with a forklift, it is a man in a service truck and flat bed trailer that just needs to be told what to work on and where to put it" it was instantly clear.

I mean, even the GNOME niggers, who literally built a whole modern DE in traditional C with manually bolted-on OOP, ended up creating an entirely new language from scratch (plus bindings for Rust, JavavScript, Python, and C#) in order to get more developers because not even trannydevs cared enough to learn all that shite, and they know how cope and dilate like nobody's business.

Which gnome version, 2? I have never really used it. This seems esoteric...................

And perhaps they just didn't do a good job with the architecture. Even QT can be a mess at points and it's the easiest I've ever had using c++ and that's saying something.