[Issue 4382] New: Same syntax to access items of Proxy and Tuple and more
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jun 24 04:10:46 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4382
Summary: Same syntax to access items of Proxy and Tuple and
more
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at eml.cc 2010-06-24 04:10:44 PDT ---
std.range.Proxy uses .at!(i) to access items, while std.typecons.Tuple uses
.field[i] to access items. Is it possible for them to use the same syntax&name
to access single items?
(A more general comment about the situation: Zip yields Proxies, this is
probably done for efficiency, but makes Zip itself less standard. If Zip yields
Tuples instead this allows people to use it in a more standard way. To maximize
interoperability D2 needs to standardize more its usage of Tuples. A
possibility is to move the Proxy struct to std.typecons and consider both Tuple
and Proxy the two standard ways to create tuples in D2.)
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list