I don't particularly like any of the options here, but "as" seems like
the least bad one. Matching on a casted constant seems like a pretty
rare case, and you can always use if instead of match. I agree that
the existing @ syntax is ugly, and I think using '=' for pattern
binding muddies the waters (besides the ambiguity).

Cheers,
Tim



-- 
Tim Chevalier * http://catamorphism.org/ * Often in error, never in doubt
"Too much to carry, too much to let go
Time goes fast, learning goes slow." -- Bruce Cockburn
_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to