Chris Angelico writes:
> Possibly a better example would be path division in Python,
I would have chosen '+' for that operation for the same reason '+'
"just works" for sequences. It's a very specialized use case but
5 * pathlib.Path('..') / "foo"
makes sense as an operation but oh, the
On 2/09/20 8:35 am, Chris Angelico wrote:
Maybe
we need a different term for this kind of overloading, where we're not
even TRYING to follow the normal semantics for that operation, but are
just doing something because it "feels right".
Operator repurposing?
--
Greg
On Wed, Sep 2, 2020 at 3:48 AM Stephen J. Turnbull
wrote:
>
> A digression on abuse of operators, notation, and "abuse of notation".
>
> Steven D'Aprano writes:
> > On Sun, Aug 30, 2020 at 05:49:50PM +1200, Greg Ewing wrote:
>
> > > I don't see why we need to pick one use case to bless as the
>