traverse1984 / oxide.ts

Rust's Option<T> and Result<T, E>, implemented for TypeScript.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

unwrap_or -> unwrapOr

linonetwo opened this issue · comments

Will you consider this alternative alias, that is near to the JS community tradition?

@linonetwo I believe these camel-case aliases are already provided: Option, Result.

They are indeed already provided. Based on feedback from many people, they will likely become the default. The snake case versions may be removed completely or moved to a require-by-choice extension in the future.

Wow, I was just reading Readme, not installed yet, I will try it locally, thanks.