4 ms·
I am relearning c++, much has changed in last 12 years! I tried Rust, but when doing a data driven app, I found myself using unsafe way too much!
by BatFastard 4y ago
I am relearning c++, much has changed in last 12 years!
I tried Rust, but when doing a data driven app, I found myself using unsafe way too much!
- petre 4y agoYou should both probably try D. It can use C/C++ libraries seamlessly and doesn't have the footguns or the needless complexity.
- Gigachad 4y agoWhy are people always more afraid of unsafe than C/++? Using C++ because you had to use unsafe is throwing the whole house out with the bath water. It’s like Rust forces people to acknowledge when they are taking things in to their own hands while C/++ let’s them live in blissful ignorance.
- davidatbu 4y agoThis is indeed very curious!
- nyanpasu64 4y agoBecause unsafe Rust has at least as many footguns, and a narrower happy path (second-class support for shared mutability, raw pointers are a pain to use and encapsulating in a handle struct might help though I haven't tried writing code this way, Pin violates SB, Box may or may not disable aliasing raw pointers), than C++.