首页 > AI前沿 > Evergreen: A Provably Safe Systems Language

Evergreen: A Provably Safe Systems Language

Hacker News 2026-11-04 23:25 3 阅读 查看原文
Invariants live in your code. Put preconditions, postconditions, and data invariants beside the code they describe. They become obligations the compiler checks. fn increment(n: usize) -> usize where n < usize::MAX ensures result > n { n + 1 }