azdle@news.idlestate.org to Rust@programming.devEnglish · 6 days agothings rust shipped without (2015)graydon2.dreamwidth.orgexternal-linkmessage-square20linkfedilinkarrow-up131arrow-down12
arrow-up129arrow-down1external-linkthings rust shipped without (2015)graydon2.dreamwidth.orgazdle@news.idlestate.org to Rust@programming.devEnglish · 6 days agomessage-square20linkfedilink
minus-squareTehPers@beehaw.orglinkfedilinkEnglisharrow-up6·6 days 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.