Am I evil for this?

Mike Parker aldacron at gmail.com
Fri Oct 14 02:13:34 UTC 2022


On Thursday, 13 October 2022 at 21:01:08 UTC, Araq wrote:

> Before C came along x << y already meant "x is much smaller 
> than y" and x || y sometimes meant "run x and y in parallel". 
> "Nonstandard purposes" hardly means anything. Use the operators 
> as you see fit.

"nonstandard purposes" were the OP's words, not Walter's. 
Walter's was talking about overloading for nonarithmetic 
purposes. This is not an uncommon criticism. He cited the C++ 
iostreams library as many who make this criticism do, and also a 
project he saw in the past that overloaded C++ operators to make 
a regex DSL.

The specific discussion about operator overloading is here:
https://youtu.be/G6b62HmsO6M?t=858




More information about the Digitalmars-d mailing list