[Satirical] Breaking News: The inverted result type!

Kapendev alexandroskapretsos at gmail.com
Sat Jun 27 11:12:02 UTC 2026


On Saturday, 27 June 2026 at 10:53:42 UTC, monkyyy wrote:
> On Saturday, 27 June 2026 at 10:48:34 UTC, Kapendev wrote:
>> 
>> Yeah, this works. I'm not sure (even for my version of this) 
>> if the `alias this` should be the error value or a function 
>> like `isSome` that checks if `error == noterror`.
>> Maybe it needs a different name. `CouldError`??
>
> alias to the data, use opCast bool before even consider 
> designing around truthyness
>
> language level truthyness so bad

I don't like using opCast :)


More information about the Digitalmars-d mailing list