Anyone come up with some cool algorithms/templates for D lately?

Robert Fraser fraserofthenight at gmail.com
Fri Apr 18 15:15:21 PDT 2008


Michel Fortin wrote:
> On 2008-04-17 23:32:03 -0400, Bill Baxter <dnewsgroup at billbaxter.com> said:
> 
>> Psst -- don't tell anyone but ...
>> opDot... coming to a DMD near you soon.
> 
> opDot? I'd like to hear why it would be named this way instead of 
> opMember, opFwd, or anything telling what usage the operator is about 
> instead of what it looks like. There's a reason Walter has choosen 
> opAdd, opDiv, opSlice, etc. instead of opPlus, opSlash, opBrakets, etc. 
> and I feel it was a very good idea. Why move away from this?
> 
> I know there's a precedent (opStar), but I'd like to hear the rationale 
> behind this choice too (why isn't it called opDeref?).

Unlike opStar, opDot's name is instantly intuitive. It doesn't fit with 
the others, but at least it's easy to guess what it does, so it's a step up.



More information about the Digitalmars-d mailing list