On 2/25/18 8:03 PM, aliak wrote:
Alo,
Just finished up a first take on an optional type for D. It's
essentially a mix of Nullable and std.range.only, but with a lot more
bells and whistles. I would love to hear any feedback on code, or
features, or bad design or potential for better designs from anyone
who's interested :)
Code: https://github.com/aliak00/optional
Dub: https://code.dlang.org/packages/optional
Docs: https://aliak00.github.io/optional/
Did you take a look at https://dlang.org/library/std/range/only.html? --
Andrei