Good name for f.byLine.map!(x => x.idup)?
Nick Treleaven
ntrel-public at yahoo.co.uk
Mon Mar 17 06:38:28 PDT 2014
On 16/03/2014 18:03, Adam D. Ruppe wrote:
> If byLine returned a scope item, then it wouldn't be allowed to escape
> and throw a nice compile error pointing people in the right
> direction.... scope rox so much i want it so badly. (i guess here the
> mutability pretty much tells the story too tho)
It would certainly help when using foreach. I think there are cases
without foreach which would still be allowed to access previous range
fronts though, as they could still be in scope.
More information about the Digitalmars-d
mailing list