Re:I think C++ is still a desirable coding platform compared...
by BanTheBastards on Wednesday November 22, 2023 @08:56AM
(#38379161)
Speak for yourself: I'm not returning to the world of "discipline" (aka lost productivity) without a damn good reason to carry on existing codebases. It's just a waste of a good coder and certainly of good time.
[ Parent
| on HN ]
Re:I think C++ is still a desirable coding platform compared...
by Jyaif on Wednesday November 22, 2023 @09:07AM
(#38379312)
In C++ discipline is optional. In Rust it's mandatory.
Re:I think C++ is still a desirable coding platform compared...
by steveklabnik on Wednesday November 22, 2023 @12:32PM
(#38382219)
I think this is amusing because both directions completely work:
In C++, you can do whatever. Rust forces you do to some things. No discipline required by C++, absolutely required by Rust.
In C++, you can do whatever. Rust forces you to do some things. This means you must have discipline in C++, or you will do bad things. But in Rust, you can do whatever you want, the compiler has your back.
Re:I think C++ is still a desirable coding platform compared...
by Jyaif on Wednesday November 29, 2023 @12:12PM
(#38462058)
Good point, I was imprecise.
I should have said that no discipline is required in C++ to obtain a binary.
Re:I think C++ is still a desirable coding platform compared...
by BanTheBastards on Wednesday November 22, 2023 @10:19AM
(#38380396)
I completely disagree; discipline is only optional in C++ if you want to ship broken code. Even the top poster in this thread that actually cops to the productivity overhead of C++ admits (albeit obliquely) they still make memory errors