<a href="https://github.com/SimonSapin"><img src="https://avatars.githubusercontent.com/u/291359?v=2" align="left" width="96" height="96" hspace="10"></img></a> **Issue by [SimonSapin](https://github.com/SimonSapin)** _Sunday Feb 02, 2014 at 12:29 GMT_ _For earlier discussion, see https://github.com/rust-lang/rust/issues/11990_ _This issue was labelled with: A-parser, B-RFC in the Rust repository_ --- The general syntax for a struct pattern is: ``` StructName { field_name: new_variable_name } ``` But when the desired variable name is the same as the field name, it does not need to be repeated: ``` let MyStruct { name } = struct_value; do_something_with(name); ``` This proposal is to add similar syntax sugar for struct expressions: ``` let name = …; let struct_value = MyStruct { name }; ``` … would be the same as: ``` let name = …; let struct_value = MyStruct { name: name }; ``` CC: @eddyb