snaggen@programming.dev to Rust@programming.dev · 4 months agoAnnouncing Rust 1.79.0blog.rust-lang.orgexternal-linkmessage-square3fedilinkarrow-up178arrow-down11
arrow-up177arrow-down1external-linkAnnouncing Rust 1.79.0blog.rust-lang.orgsnaggen@programming.dev to Rust@programming.dev · 4 months agomessage-square3fedilink
minus-squaretaladar@sh.itjust.workslinkfedilinkarrow-up7·4 months agoconst expressions are evaluated at compile time and can be used in locations where you would have to otherwise specify a literal (or something that amounts to a named literal like a const value).
const expressions are evaluated at compile time and can be used in locations where you would have to otherwise specify a literal (or something that amounts to a named literal like a const value).