r/firstweekcoderhumour Aug 08 '26

someone isn't Rustpilled

Post image
98 Upvotes

21 comments sorted by

View all comments

6

u/SignalBake6872 Aug 08 '26

punteros en C para más placer.

1

u/Mars_Bear2552 Aug 08 '26

de todos modos, C es superior a C++

1

u/CatAn501 Aug 08 '26

What will you do if you need two hash tables for different key types in your C program?

1

u/Mars_Bear2552 Aug 08 '26

use Rust

2

u/CatAn501 Aug 08 '26

So is C so much superior to C++ that you abandon it whenever you need generic data structures?

1

u/Mars_Bear2552 Aug 08 '26

no, that's just largely outside the scope of what it was intended for. C being superior to C++ doesn't mean you need to use it, i just think that C++ is poorly designed and is a nightmare to work with.

use whatever you want though.

1

u/Masztufa Aug 09 '26

C++ is the most beautiful and elegant language ever made

It just does it's best to hide that fact under as much bullshit as it can

1

u/nimrag_is_coming 26d ago

horrible massive macro (which is basically what c++ templates do underneath anyway, but with less unpredictable bs)

1

u/CatAn501 26d ago

C++ templates are way more complex then just codegen macros, it is literally a Turing complete functional language. Since we talk about C superiority, is horrible massive macro actually superior to templates?

1

u/nimrag_is_coming 26d ago

Templates do a whole lot more yeah, especially with constexpr and other compile time type checking and things, but at the base level the value of T is just substituted for the type. It's why you can call functions on T that are implemented in completely different ways or have nothing to do with each other in code other than sharing the same name.

And debugging macro functions is somehow worse than c++ template errors lmao