[Issue 6256] [patch] std.algorithm.map does not support static arrays and has 'length' for narrow strings.

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Dec 7 04:19:30 PST 2014


https://issues.dlang.org/show_bug.cgi?id=6256

Jonathan M Davis <issues.dlang at jmdavisProg.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |issues.dlang at jmdavisProg.co
                   |                            |m

--- Comment #6 from Jonathan M Davis <issues.dlang at jmdavisProg.com> ---
If you want to argue for a special overload for static arrays, please open a
new enhancement request. However, in general, I think that supporting static
arrays with range-based functions is just asking for trouble, because they're
not ranges (e.g. popFront does not and cannot work for them). So, I think that
benchmarks which show a significant improvement with static arrays being
special-cased would be required for it to be worth considering.

--


More information about the Digitalmars-d-bugs mailing list