it means rust is cool as fuck
Comment on Anon hates C++
Hadriscus@jlai.lu 3 weeks agoWhat does that mean ?
ddplf@szmer.info 3 weeks ago
Hadriscus@jlai.lu 3 weeks ago
aren’t they talking about C++ ?
ddplf@szmer.info 3 weeks ago
C++ has pretty much no compile-time checks, while Rust’s overengineered syntax allows it’s compiler to catch vast majority of your everyday errors during compilation.
Hadriscus@jlai.lu 3 weeks ago
ok thanks
mr_satan@lemmy.zip 3 weeks ago
It doesn’t eliminate logic bugs. I’d argue these are way more relevant in day to day programming.
asdfasdfasdf@lemmy.world 3 weeks ago
Rust is a very modern replacement for C /C++.
red_tomato@lemmy.world 3 weeks ago
Overengineered mess
e8d79@discuss.tchncs.de 3 weeks ago
If you have a constant expression like
1 + 2in your code you can evaluate it at compile time once and avoid computing it at runtime. You can do that with control flow and much more complex language constructs in C++. If you want to know more about that look into C++ template meta programming, constexpr, and constval.Amir@lemmy.ml 3 weeks ago
Or don’t look into those things if you wish to remain sane
87Six@lemmy.zip 3 weeks ago
Templates are cool as fuck tho… For like 5 minutes until you go insane
Amir@lemmy.ml 3 weeks ago
I get that the designers wanted to have compile time static replacement but this was not the way to do it.
protogen420@lemmy.blahaj.zone 3 weeks ago
yeah, zig and rust have the same concepts but much better thought and structed
rtxn@lemmy.world 3 weeks ago
It’s easy to build a well-designed language when you don’t have to work around the mistakes of the past that were too difficult to solve then and too deeply entrenched to change now.
timochka@lemmy.zip 3 weeks ago
Translation: “We’ve made the preprocessor a first-class language feature!”
(jk, don’t kill me)
Hadriscus@jlai.lu 3 weeks ago
thank you !