Rust compiler blocks borrow-scope risk while C happily jumps into uninitialized memory

rachittshah · x · 2026-10-15

A dev joke making the rounds contrasts the two languages' memory-safety philosophies: Rust refuses to compile because "reference x might outlive borrowed scope y on line 42," while C cheerfully casts an integer to a function pointer and jumps straight into uninitialized heap memory — "hell yeah brother, here's your binary."

Original post →

More from Fun

Fun channel →