Mac to [email protected] • 5 months agoAnnouncing Rust 1.80.0blog.rust-lang.orgexternal-linkmessage-square6fedilinkarrow-up170arrow-down10cross-posted to: [email protected]
arrow-up170arrow-down1external-linkAnnouncing Rust 1.80.0blog.rust-lang.orgMac to [email protected] • 5 months agomessage-square6fedilinkcross-posted to: [email protected]
minus-squareEpheralinkfedilink5•5 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.