opBinary : Static ifs or specialization?

claptrap clap at trap.com
Tue Jun 23 23:53:36 UTC 2020


So you have opBinary and half a dozen operators to implement. Do 
you use a separate method for each operator or do you have one 
method and a big static if else if to select code path?

I assume they are functionally equivalent? So its just about 
style?


More information about the Digitalmars-d-learn mailing list