Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
nrc
· 12y ago · 0 comments
In Rust, we are quite strict about the syntax used for destructuring matching the syntax used for instantiation. There is a name in the tuple-struct declaration, therefore you must use the name when pattern matching (even though it is redundant).
Comments
No comments yet.