[Issue 21420] New: Nullable.get default parameter is not lazy
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Nov 24 09:28:19 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=21420
Issue ID: 21420
Summary: Nullable.get default parameter is not lazy
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: enhancement
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: default_357-line at yahoo.de
Nullable.get default parameter should obviously be lazy. Every other default
value in
the language is lazy. Unfortunately, Nullable's is not. This leads to
unnecessary evaluations
of values that are never used.
--
More information about the Digitalmars-d-bugs
mailing list