3 ms·
Maybe it is me, but it seems more like a parody showing how not to do things. I believe the easiest way to do it is something like: mypoint.coords().map(|x
by ordu 3y ago
Maybe it is me, but it seems more like a parody showing how not to do things. I believe the easiest way to do it is something like:
mypoint.coords().map(|x| x * x).sum().sqrt()
Instead there are dozens of lines of code adding some obscure constructs with the only goal to hide what happens and without any idea why we need to hide. You can find words "this design rationale", hinting that somehow this text may explain motivation behind all the complexity, which is also sounds to me as a sarcasm.
> Copyright © 2009-2013 Barend Gehrels,
Is 2013 the year when C++ people came to their senses and stopped doing that?