[Issue 22736] Add destructuring bind for std.typecons.Tuple tuples
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Feb 4 19:56:19 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=22736
--- Comment #1 from Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> ---
Why not just specify the names when constructing the tuple?
-> Sometimes, the tuple is constructed in more than one place. This would
require specifying the same names at every construction site.
Why not declare the tuple type ahead of time?
-> The declaration may need to be placed far away from the construction and use
sites, such as in long UFCS chains.
--
More information about the Digitalmars-d-bugs
mailing list