Pow Expressions - not worth the juice?

Timon Gehr timon.gehr at gmx.ch
Mon Feb 2 23:23:49 UTC 2026


On 2/2/26 18:43, Walter Bright wrote:
> https://dlang.org/spec/expression.html#pow_expressions
> 
> They're a bit of an oddball feature in D,

No. An actual example of an oddball "feature" is how D handles closure 
allocation in loops in that its implementation and resulting behavior is 
completely and utterly broken in a way that goes way below and beyond 
even the plethora of slightly different bad designs that exist in other 
popular languages.

> in that it's the only feature 
> that relies on Phobos for its implementation.
> ...

Well, then maybe the implementation should be changed.

> Time for it to go?

Absolutely not.

I suggest focusing attention on actual problems instead of continuously 
trying to break obvious quality-of-life features that together add up to 
making D great.

Binary literals and opBinary!"^^" ftw.

I know it's much trickier to fix hard problems instead of gratuitously 
breaking simple things that already work, but I really think that's just 
also where most of the juice is.



More information about the Digitalmars-d mailing list