azdle@news.idlestate.org to Rust@programming.devEnglish · 2 months agothings rust shipped without (2015)graydon2.dreamwidth.orgexternal-linkmessage-square25fedilinkarrow-up133arrow-down12cross-posted to: lobsters
arrow-up131arrow-down1external-linkthings rust shipped without (2015)graydon2.dreamwidth.orgazdle@news.idlestate.org to Rust@programming.devEnglish · 2 months agomessage-square25fedilinkcross-posted to: lobsters
minus-squareTehPers@beehaw.orglinkfedilinkEnglisharrow-up6·2 months 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
constkeyword, soRight now they use a lint to try to warn the dev though.