I dun a DIP, possibly the best DIP ever

Manu turkeyman at gmail.com
Fri Apr 24 08:34:14 UTC 2020


On Fri, Apr 24, 2020 at 6:20 PM Walter Bright via Digitalmars-d <
digitalmars-d at 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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20200424/0383144f/attachment.htm>


More information about the Digitalmars-d mailing list