Skip to content

Releases: aliak00/optional

v1.2.1

08 Apr 10:34
Compare
Choose a tag to compare
Remove unknown flag in ldc

v1.0.0-beta.1

29 Jul 22:09
Compare
Choose a tag to compare

Big changes for version 1.0.0

  • Added: dip1000/dip25 conformance
  • Added: Can use optionals with @disabled copy types
  • Added: Tests for vibe-d integration
  • Added: Address sanitization to testing
  • Added: frontOr that works on ranges, optionals, and nullables
  • Changed: renamed orElse to or
  • Changed: renamed dispatch to oc
  • Changed: or will return only rhs or lhs, and not front of optional
  • Changed: or now accepts ranges, nullables, and references
  • Changed: or accepts void lambda
  • Changed: match returns void if either lambda returns void
  • Changed: pointer semantics to be the same as class semantics (i.e. some!(int*)(null) == none)
  • Fixed: Unsafe return values
  • Removed: NotNull
  • Removed: unwrap

v0.16.0

24 Jun 22:11
cfac31b
Compare
Choose a tag to compare

Templated toString => PR #34

v0.10.0

14 Jan 09:03
Compare
Choose a tag to compare
  • Changed: make initial Optional!T state all zeros
  • Fixed: assert when front called on empty optional

v0.8.0

11 Dec 21:23
Compare
Choose a tag to compare
  • Added: betterC support PR #28 from @skoppe
  • Added: Allow optional to be compared with other ranges
  • Fixed: empty state when assigning another optional
  • Changed: pass range as auto ref to opEquals

v0.7.0

20 Sep 23:38
Compare
Choose a tag to compare
  • Added: support for array indexing and slicing
  • Added: support for opOpAssign
  • Added: safe pure nogc dispatch
  • Added: dispatching on non optional nullable types
  • Changed: dispatch does not mutate value types
  • Changed: dispatching is automatically flattened
  • Added: covariant assignment to optional

v0.6.0

24 Aug 13:13
Compare
Choose a tag to compare
  • Changed: assigning none to an optional does not call object.destroy if it is a reference type. (issue #20)
  • Fixed: allow unwrap, orElse to be used on qualified optionals. (issue #19)