Post #2227743
2025-11-19 10:03 UTC
@zimzat@mastodon.social @Mara@hachyderm.io Option::ok_or() and Option::ok_or_else() also exist and return Result.
Replies (1)
-
@soc@chaos.social 2025-11-19 11:45
@azymohliad@fosstodon.org @zimzat@mastodon.social I use `getOrPanic`, along with this naming scheme, which –unlike Rust's– is internally consistent: https://soc.me/languages/naming-conventions-option-and-result