Short list with things to finish for D2
    Walter Bright 
    newshound1 at digitalmars.com
       
    Fri Nov 20 03:45:20 PST 2009
    
    
  
Don wrote:
> There's not many sensible operators anyway. opPow is the only missing 
> one that's present in many other general-purpose languages. The only 
> other ones I think are remotely interesting are dot and cross product.
Yup.
> Anything beyond that, you generally want a full DSL, probably with 
> different precendence and associativity rules. Eg, for regexp, you'd 
> want postfix * and + operators. There are examples of clever things done 
> in C++  with operator overloading, but I think that's just because it's 
> the only way to do DSLs in C++.
I was enthralled with the way C++ did it for regex for a while, but when 
I think more about it, it's just too clever. I think it's more operator 
overloading abuse now.
> I don't think the applications are there.
I agree.
    
    
More information about the Digitalmars-d
mailing list