Pow Expressions - not worth the juice?
monkyyy
crazymonkyyy at gmail.com
Tue Feb 3 19:56:33 UTC 2026
On Tuesday, 3 February 2026 at 17:50:12 UTC, Walter Bright wrote:
> On 2/3/2026 7:24 AM, user1234 wrote:
>> I must add: this brings the topic of defining global operator
>> overloads as well. A very old topic in D NG.
>
> This feature is not in D because it leads to impenetrable code.
> One terrifying example of this is overloading operators such
> that what looks like ordinary code is actually a regular
> expression machine.
No, it *enables* impenetrable code; `2^^3` is not impenetrable
and as you see you instantly got 4 pages of backlash for
suggesting its removal.
I hate when you break your own rules for your special cases; you
needed to define an op overload via magic lib, but because your
the compiler dev you let yourself do it. Do the opposite of what
your getting backlash here for, *I want that tool*, that will
bring consistency your looking for.
More information about the Digitalmars-d
mailing list