Motive behind !empty() with front() instead of Optional front()

Paul Backus snarwin at gmail.com
Mon Apr 5 22:39:25 UTC 2021


On Monday, 5 April 2021 at 22:21:39 UTC, Per Nordlöw wrote:
> On Monday, 5 April 2021 at 21:43:30 UTC, Paul Backus wrote:
>> No, because it's not my package, it's Ali Akhtarzada's.
>
> Is there a place for it in Phobos?

I think there's a place for something like it in Phobos. Whether 
that's `Optional` itself, an improved version of 
`std.typecons.Nullable`, or something else entirely is an open 
question. And of course, Atila has the final say.


More information about the Digitalmars-d mailing list