34
Borrow Checker (programming.dev)
you are viewing a single comment's thread
view the rest of the comments
[-] SJ_Zero@lemmy.fbxl.net 2 points 1 year ago
[-] snowe@programming.dev 0 points 1 year ago

I'm definitely missing something here. I'm terrible at rust and c++

[-] RustySharp@programming.dev 3 points 1 year ago

The meme refers to the old adage "C lets you shoot yourself on the foot. C++ lets you shoot both feet and gives you a shotgun to do it" - referring to the how C allows you to perform memory-unsafe operations (causing corruption, or worse, security vulnerabilities), and C++'s complexity, potentially obscuring such unsafetyness.

Rust's memory safety tries to save you from doing (un)intentional bad stuff, by giving you compile-time errors. It's also the bane of everyone so used to C/++'s ability to just pass around and modify whatever memory they want.

[-] dukk@programming.dev 4 points 1 year ago

I’ve actually never heard that one before. I was specifically referencing this quote by the language’s creator, but I guess that one works too.

load more comments (2 replies)
load more comments (2 replies)
this post was submitted on 03 Jul 2023
34 points (97.2% liked)

Programmer Humor

19480 readers
181 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS