On Fri, Apr 24, 2020 at 6:20 PM Walter Bright via Digitalmars-d <digitalmars-d@puremagic.com> wrote:
On 4/24/2020 12:39 AM, Manu wrote:
> It doesn't make much sense to think in terms of primitive types. As I just said
> (but you truncated), operator overloads are almost certainly part of this equation.

Operator overloads don't change it.

This claim doesn't make sense. A custom type can BinOp any adjacent type it likes.

> I think it's more common to do a fold like this with logical operators though;
> `&&` appears 9 times out of 10 in my code.

     [ cast(bool)Tup ]

And then fold them?