ZILtoid1991@lemmy.world to Programmer Humor@programming.dev · 6 months agoIt's official, Rust is an anti C/C++ elitist slurlemmy.worldimagemessage-square92fedilinkarrow-up176arrow-down11
arrow-up175arrow-down1imageIt's official, Rust is an anti C/C++ elitist slurlemmy.worldZILtoid1991@lemmy.world to Programmer Humor@programming.dev · 6 months agomessage-square92fedilink
minus-squareCanadaPlus@lemmy.sdf.orglinkfedilinkarrow-up1·edit-26 months agoHmm. So I guess it comes down to what OP is doing. They either want to write a Rust library, or something that uses a Rust library that may not be standardised or even exist yet. If the latter, they should stick with C.
minus-squarebarsoap@lemm.eelinkfedilinkarrow-up0·6 months agoWriting C bindings to a Rust library is the easier scenario because you can rely on the safe code having nice and clean memory semantics.
Hmm. So I guess it comes down to what OP is doing. They either want to write a Rust library, or something that uses a Rust library that may not be standardised or even exist yet. If the latter, they should stick with C.
Writing C bindings to a Rust library is the easier scenario because you can rely on the safe code having nice and clean memory semantics.