this post was submitted on 10 Nov 2024
210 points (95.7% liked)
Programmer Humor
32739 readers
643 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I’m neither language designer or crustacean advocate, but from what can be read, Rust seems to have managed just fine. The trick is probably to allow removing the cover of the sharp edge when needed (execute unsafe).
Also, Rust allows "unsafe" code for when it's absolutely necessary; you DO need to add a line that basically says "I know compiler, don't stop me". To keep up the metaphor; Rust allows you to cut yourself with the knife, but ensures you're fully aware of what you're doing.