crab 1.0.0 copy "crab: ^1.0.0" to clipboard
crab: ^1.0.0 copied to clipboard

Provides Rust-like Result and Option types, making it easier to handle error and option values.

1.0.0 #

Crab is now stable!

  • Added Option methods. You can use almost all the features of Rust's Option trait (exclude nightly-only features).
  • Breaking: Option#flatMep is removed. You can use Option#andThen instead.

0.2.0 #

  • Added Result methods. You can use almost all the features of Rust's Result trait (exclude nightly-only features).
  • Fixed Ok#toString, Err#toString, Some#toString, and None#toString.
  • Breaking: Result#flatMep is removed. You can use Result#andThen instead.
  • Breaking: Changed Ok.value and Err.err to private. You can use Result#unwrap and Result#unwrapErr instead.
  • Breaking: Changed Some.value to private. You can use Option#unwrap instead.

0.1.0 #

  • Initial release
0
likes
140
pub points
46%
popularity

Publisher

unverified uploader

Provides Rust-like Result and Option types, making it easier to handle error and option values.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

meta, tuple

More

Packages that depend on crab