TheCharlatan on Nostr: After a full year working with c++ again I feel like it really doesn't offer anything ...
After a full year working with c++ again I feel like it really doesn't offer anything that I would miss were I be writing Rust instead. On the contrary, on multiple occasions an otherwise sane refactor was criticized for opening the door towards dangerously extending the lifetime of a variable - a problem that would have been trivial to handle in Rust. Also the techniques suggested for handling these situatons in c++ were mitigations at best.
Published at
2024-05-12 17:41:18Event JSON
{
"id": "ad566b715bf1a154abc5f67c8ef60be903471f3e874747d7fad0e510c0133f6f",
"pubkey": "1912dbbc2491035b1a376b0acf47bf431d508ea5e4ecea644ffa79311849fa5d",
"created_at": 1715535678,
"kind": 1,
"tags": [],
"content": "After a full year working with c++ again I feel like it really doesn't offer anything that I would miss were I be writing Rust instead. On the contrary, on multiple occasions an otherwise sane refactor was criticized for opening the door towards dangerously extending the lifetime of a variable - a problem that would have been trivial to handle in Rust. Also the techniques suggested for handling these situatons in c++ were mitigations at best.",
"sig": "b892206b8bd935c64285c376ac6b64e2aa593918e58203a71af89f2b625369b4b204fbc05cb7a3a94ef28d3e06f2404486da3119ffa631f267284cd9d3bd1883"
}