Created
February 10, 2015 16:51
-
-
Save ufcpp/0e1402b028754b11c382 to your computer and use it in GitHub Desktop.
Tuple deconstruction in the 10th Feb. proposal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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