RFC: naming for FrontTransversal and Transversal ranges

Rainer Deyke rainerd at eldwood.com
Thu Apr 30 11:40:42 PDT 2009


Michel Fortin wrote:
> On 2009-04-29 23:01:39 -0400, Rainer Deyke <rainerd at eldwood.com> said:
>> Andrei Alexandrescu wrote:
>>> 3. Reference semantics
>> I'm strongly opposed to this option.  Either of the other options would
>> be acceptable.
> 
> Andrei mentioned a couple of reasons against 3, which are yours?

I agree with all of Andrei's reasons.

In addition, there's this: suppose you have a struct containing a
(mutable) array.  When you make a copy of that struct, you will almost
always want to make a copy of the contained array.  Therefore value
semantics should be the default, because it simplifies the most common
use case.


-- 
Rainer Deyke - rainerd at eldwood.com



More information about the Digitalmars-d mailing list