www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21420] New: Nullable.get default parameter is not lazy

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 puremagic.com
          Reporter: default_357-line 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.

--
Nov 24 2020