lib-option 1.1.0

Even more option types for D.


To use this package, run the following command in your project's root directory:

= Options for D!

Exciting!

Comes in 2 flavors!

Definitely done before!

Truly astonishing!

== Q&A

=== What is this?

A small minded implementation of option types in D.

=== Why not just use <other option lib>?

You should definitely use <other option lib>.

=== Will it finally allow me to download a car?

It absolutely will, yes.

== option(T) struct form

[source, d]

auto foo = none!int; auto bar = some(3); auto fizz = maybe!(int)(null); auto buzz = some!(int)(null); // ERROR

== Option(T) class form

[source, d]

auto foo = Options.none!int(); auto bar = Options.some(3); auto fizz = Options.maybe!(int)(null); auto buzz = Options.some!(int)(null); // ERROR

Authors:
  • Elizabeth Harper
Dependencies:
none
Versions:
1.1.0 2019-Jul-18
1.0.1 2019-Jun-24
1.0.0 2019-Jun-24
~master 2019-Jul-18
Show all 4 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 4 downloads total

Score:
0.3
Short URL:
lib-option.dub.pm