Why ranges don't return vectors?
deadalnix
deadalnix at gmail.com
Mon Mar 4 07:28:31 PST 2013
On Friday, 1 March 2013 at 22:18:10 UTC, Chris Cain wrote:
> Okay, sure, performance. But if you want to code for
> performance, there's nothing stopping you now. The idea about
> ranges is to unify lots of concepts. If you need lower level
> work and require every bit of performance, but still want to
> use ranges, then you can, but it should be a specialized range
> type that you do it on which meets your precise specification.
>
And still, some time you'd be surprised by what the compiler can
do for you. Cf the discussion about SentinelRange.
More information about the Digitalmars-d
mailing list