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