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

Paul Backus snarwin at gmail.com
Mon Apr 5 21:43:30 UTC 2021


On Monday, 5 April 2021 at 20:46:07 UTC, Per Nordlöw wrote:
> On Monday, 5 April 2021 at 20:38:33 UTC, Paul Backus wrote:
>> Optional implements the standard range interface, so the 
>> algorithms it uses are the existing ones in std.algorithm.
>
> Ah, of course. Are you planning on adding Optional to Phobos 
> aswell?

No, because it's not my package, it's Ali Akhtarzada's.


More information about the Digitalmars-d mailing list