(no title)
krapht | 3 months ago
This is cute, but also I'm baffled as to why you would want to use macros to emulate c++. Nothing is stopping you from writing c-like c++ if that's what you like style wise.
krapht | 3 months ago
This is cute, but also I'm baffled as to why you would want to use macros to emulate c++. Nothing is stopping you from writing c-like c++ if that's what you like style wise.
Qwuke|3 months ago
Though yes, you should probably just write C-like C++ at that point, and the result sum types used made me chuckle in that regard because they were added with C++17. This person REALLY wants modern CPP features..
loup-vaillant|3 months ago
I like the power of destructors (auto cleanup) and templates (generic containers). But I also want a language that I can parse. Like, at all.
C is pretty easy to parse. Quite a few annoying corner cases, some context sensitive stuff, but still pretty workable. C++ on the other hand? It’s mostly pick a frontend or the highway.
CyberDildonics|3 months ago
dboon|3 months ago
C’s simplicity can be frustrating, but it’s an extremely hackable language thanks to that simplicity. Once you opt in to C++, even nominally, you lose that.
phs2501|3 months ago
(Agree on your other points for what it's worth.)
Lerc|3 months ago
It's choosing which features are allowed in.
sesm|3 months ago
kjs3|3 months ago
[1] https://doc.rust-lang.org/beta/rustc/platform-support.html
bangaladore|3 months ago
Quite frankly I'm not sure why you wouldn't given that most are using GCC on common architectures. The chip vendor doesn't have to do any work unless they are working on an obscure architecture.
_vqpz|3 months ago
You'll just have to get used to the C++ community screaming at you that it's the wrong way to write C++ and that you should just use Go or Zig instead
unknown|3 months ago
[deleted]
cryptonector|3 months ago