logoalt Hacker News

uecker • yesterday at 9:44 PM • 0 replies • view on HN

Casts are escape hatches just like "unsafe" in Rust. You can write safe generics in C that either do not use casts or wrap all unsafe operations behind type-safe interfaces.