Conversation

the specific reason this doesn't work is that you have found the only part of pattern matching that /isn't/ a pattern; that needs to be a const-expression that constructs a value, since any bound names in the pattern left of the "if" are getting their values compared on the right
2
2
Out of curiosity is there a reason ocaml style "as" COULDN'T have been the syntax here (where Rust uses @)? I actually tried that first lol Also is @ allowed anywhere outside destructurings? Can I use it in let destructures?
3
1
- /probably/ just limiting how many overloads the word has? the @ sigil also used to do more things, and we used to have more sigils, but *now* it's vestigial and weird - yeah that should work, though it'd be heavily constrained by reference rules to prevent partial invalidation
1
2
I have to admit I was surprised y'all blew a big gun like @ on something single use. Woulda thought you were keeping that in reserve :)
1
2
pretty sure it used to mean Vec, back when graydon hated using the english vocabulary and Box was spelled ~
1
6