Skip to content

Instantly share code, notes, and snippets.

@ufcpp
Created February 10, 2015 16:51
Show Gist options
  • Save ufcpp/0e1402b028754b11c382 to your computer and use it in GitHub Desktop.
Save ufcpp/0e1402b028754b11c382 to your computer and use it in GitHub Desktop.
Tuple deconstruction in the 10th Feb. proposal
var t = (sum: 1, count: 2); // タプル構築
(var sum, var count) = t; // タプル分解
(sum, count) = t; // 既存変数へのタプル分解(これを認めるかどうかは未定)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment