4 ms·
My only criticism is the “ugly mess” part. You can implement the traits on references too.
by the_mitsuhiko 4y ago
My only criticism is the “ugly mess” part. You can implement the traits on references too.
- forrestthewoods 4y agoTrue, that does work for traits. But it's super annoying if you have to write multiple copies of the same thing. That can get out of control quick if you need to implement every combination. And that doesn't help at all if you're writing a "free function" like 3D primitive intersection functions. I suppose you could change that simple function into a generic function that takes AsDeref? Bleh.