Mac@programming.dev to Rust@programming.dev · 3 months agoAnnouncing Rust 1.80.0blog.rust-lang.orgexternal-linkmessage-square6fedilinkarrow-up168arrow-down10
arrow-up168arrow-down1external-linkAnnouncing Rust 1.80.0blog.rust-lang.orgMac@programming.dev to Rust@programming.dev · 3 months agomessage-square6fedilink
minus-squareEphera@lemmy.mllinkfedilinkarrow-up5·3 months agoImmediately used the LazyLock + static to build a quasi-constant which does an expensive check only once at program start, and only when it’s actually used. Pretty cool.
Immediately used the LazyLock +
static
to build a quasi-constant which does an expensive check only once at program start, and only when it’s actually used. Pretty cool.