logoalt Hacker News

lkey • today at 11:46 AM • 2 replies • view on HN

Lifetimes can be effectively erased via covariant assignment. It's in the title. Even a beginner could understand these assignments are not in spec? Are you just being contrary to be contrary?


Replies

csande17 • today at 11:57 AM

If that's the definition you're using, then C is also a safe programming language. In fact, C is even safer, because it actually does have a specification that lists all the invariants that the programmer has to uphold themselves because the compiler doesn't check them.

cowlevel • today at 11:52 AM

So point to the spec

➕ show 2 replies