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

Per Nordlöw per.nordlow at gmail.com
Mon Apr 5 20:46:07 UTC 2021


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?


More information about the Digitalmars-d mailing list