www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17024] New: check Phobos for convenience wrapper for

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 puremagic.com
          Reporter: greeenify 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)

--
Dec 23 2016