RFP - name for input range method

Steven Schveighoffer schveiguy at gmail.com
Thu Apr 2 15:53:33 UTC 2020


On 4/2/20 11:32 AM, Paul Backus wrote:

> 
> Walter has a draft DIP in the works [1] to implicitly move objects 
> instead of copying them when you "make a copy and just don't use the 
> original". It seems to me like this would make non-copyable ranges much 
> more ergonomic to use, without requiring any changes to the existing 
> range interface.
> 
> [1] 
> https://github.com/WalterBright/DIPs/blob/13NNN-WGB.md/DIPs/13NNN-WGB.md

With that, indeed you could remove the need for special functions in 
many cases. I'm not sure it would be all cases.

But of course, that DIP isn't done yet. It does look like a no-brainer 
though.

-Steve


More information about the Digitalmars-d mailing list