traverse1984 / oxide.ts

Rust's Option<T> and Result<T, E>, implemented for TypeScript.
MIT License
517 stars 19 forks source link

unwrap_or -> unwrapOr #1

Closed linonetwo closed 2 years ago

linonetwo commented 2 years ago

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

rrbutani commented 2 years ago

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

traverse1984 commented 2 years ago

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.

linonetwo commented 2 years ago

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