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

outdated

Definitions of the 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.

[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
43
likes
0
pub points
91%
popularity

Publisher

unverified uploader

Definitions of the 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