Switching from C/C++ to Rust: the invisible checklist
dev.to·1d·
Discuss: DEV
🚂Cranelift IR
Preview
Report Post

After years of writing code in C and C++, switching to Rust forced me into a reflection I wasn’t expecting. It’s not about syntax, performance, or language features. It’s about something more subtle: where I spend my mental energy while programming.

The invisible checklist

When you write in C or C++, there’s a checklist you have to keep running in your head at all times. It’s not written anywhere, it doesn’t show up in any warning, but it’s there:

  • Could this pointer be null?
  • Did I free this memory? Did I free it twice?
  • Will this reference still be valid when I use it?
  • Is this cast safe?
  • Am I invoking undefined behavior without knowing it?

It’s an invisible burden. You don’t perceive it as an obstacle because it’s become the norm. It’s the constant backgro…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help