Remix.run Logo
▲ carlos256 a day ago

Jesus, I hate those macro hacks so much. Most of the time you only need a single container, so writing an ad-hoc implementation is cleaner than that.

▲pjmlp a day ago | parent [-]

The extent some will go to avoid touching C++.

▲uecker a day ago | parent [-]

Indeed. After having suffered from C++ a lot, I am also really avoid touching it if I can.

But if you compare some C++ template container to a C macro solution, I also do not find the macro solution to be more complex.

▲pjmlp a day ago | parent [-]

I would not expect any other kind of answer.

We will keep on agreeing to disagree.

▲uecker a day ago | parent [-]

The difference between me and you is that I do not usually post under C++ articles something negative about C++. Instead I respect that people interested in C++ may have their own reasons. For some reason you find it appropriate to post something negative under each C article.

I could tolerate it if it were at least some interesting criticism,.

▲pjmlp 14 hours ago | parent [-]

Because I find a waste of time to insist in pushing C, with all its flaws, into the industry.

Microsoft, Google, Apple and co have done the right decision regarding to what extent C is still required on their platforms, when we have Typescript for C for about 40 years.

Now if WG14 was actually doing type safe enumerations, sorting out implicit conversations and arrays decaying into pointers only to save typing 4 additionally characters per location, catching up to PL/I strings and arrays, I might be a bit more positive.

One can wait for WG14 to ever deliver that, assuming it will ever happen, or take the easier way out, and use such features on C++ today.

In reality, we as industry should have long replaced both of them with something better, since Ada and Modula-2 came to be, but alas the industry always takes the easier path, like mountain rivers.

▲uecker 14 hours ago | parent [-]

Yes, but please take your general grievances about than Pascal / Modula / Ada did not win elsewhere than to every discussion related to C. Maybe write a nice Modula program and make submission aoub this?

▲pjmlp 13 hours ago | parent [-]

Well, all C authors did just that, they moved on from their creation, trying a first successor with Alef, Limbo and then Go.

Likewise by 2002, AT&T also decided C had enough of lifetime and started the Cyclone project, which has a great effect in modern type systems.

They might have not won over C, others will, with projects whose influences trace back to where UNIX and C were born, quite ironically.

Which is much more interesting to post about than Modula-2 in 2026.

▲ 12 hours ago | parent [-]
[deleted]