[Issue 17024] New: check Phobos for convenience wrapper for templated struct

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Dec 23 16:15:46 PST 2016


https://issues.dlang.org/show_bug.cgi?id=17024

          Issue ID: 17024
           Summary: check Phobos for convenience wrapper for templated
                    struct
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: greeenify at gmail.com

Helps to let the compiler do its job. This style is very common in newer
modules of Phobos, but older bits still lack it.

One example from https://github.com/dlang/phobos/pull/4989

NullableRef!(int)(&x) -> nullableRef(&x);


Another example is [Unique](https://dlang.org/phobos/std_typecons.html#.Unique)

--


More information about the Digitalmars-d-bugs mailing list