azdle@news.idlestate.org to Rust@programming.devEnglish · 21 hours agothings rust shipped without (2015)graydon2.dreamwidth.orgexternal-linkmessage-square4fedilinkarrow-up124arrow-down12cross-posted to: lobsters
arrow-up122arrow-down1external-linkthings rust shipped without (2015)graydon2.dreamwidth.orgazdle@news.idlestate.org to Rust@programming.devEnglish · 21 hours agomessage-square4fedilinkcross-posted to: lobsters
minus-squareTehPers@beehaw.orglinkfedilinkEnglisharrow-up4·16 hours agoAs in using consts (or variables you think are consts) as refutable patterns? Yeah this was an oversight I’m sure. One option is an edition change requiring a const keyword, so match foo { const BAR => {}, baz => {}, } Right now they use a lint to try to warn the dev though.
As in using consts (or variables you think are consts) as refutable patterns? Yeah this was an oversight I’m sure.
One option is an edition change requiring a
const
keyword, soRight now they use a lint to try to warn the dev though.