leocavalcante / result
Result provides an alternative error handling mechanism, avoiding throwing exceptions and a better data flow control.
v0.1.0
2021-02-17 20:49 UTC
Requires
- php: >=7.4
- ext-json: *
Requires (Dev)
- pestphp/pest: ^1.0
- vimeo/psalm: ^4.0
This package is auto-updated.
Last update: 2024-12-06 19:09:58 UTC
README
🎁 Result provides an alternative error handling mechanism, avoiding throwing exceptions or using nulls.
Heavily inspired by Rust's Result.
Why avoid nulls?
TODO: Talk about null-safety.
Why avoid exceptions?
TODO: Talk about resilience.