oxidized 4.0.0 copy "oxidized: ^4.0.0" to clipboard
oxidized: ^4.0.0 copied to clipboard

outdated

Definitions of Rust-like types, Option and Result, to promote safer programming.

Change Log #

All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning. This file follows the convention described at Keep a Changelog.

[4.0.0] - 2020-03-03 #

Changed #

  • BREAKING CHANGE: migrated to null safety and Dart SDK 2.12.

[3.1.0] - 2020-03-22 #

Added #

  • Add fold() function on Result that combines map() and mapErr().

[3.0.1] - 2020-03-18 #

Changed #

  • Fix the package description and code formatting.

[3.0.0] - 2020-03-18 #

Changed #

  • BREAKING CHANGES: see below for the details.
  • The Result "ok" and "error" values are full-fledged classes now.
  • The Option "some" and "none" values are full-fledged classes now.
  • Option.isSome() and Option.isNone() are gone, use is Some and is None.
  • Result.isOk() and Result.isErr() are gone, use is Ok and is Err.
  • The default Result constructor has been renamed to of() instead.
  • Passing null to the Option.some() factory constructor will yield a None.
  • Both the Ok and Err subclasses of Result allow for null arguments.

[2.0.0] - 2020-03-14 #

Added #

  • Borrowing from simple_result, added when() as an alternative to match().

Changed #

  • BREAKING CHANGE: the various is methods are now getters.
  • Extend Equatable in both Option and Result.
  • Override the equals operator (==) in both Option and Result.

[1.0.0] - 2020-03-09 #

Added #

  • Initial version
46
likes
0
pub points
91%
popularity

Publisher

unverified uploader

Definitions of Rust-like types, Option and Result, to promote safer programming.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

equatable

More

Packages that depend on oxidized