Hey guys,
Have you planned to implement the Option
type/class ?
Issue Analytics
- State:
- Created 3 years ago
- Comments:15 (13 by maintainers)
Top Results From Across the Web
What are Options? Types, Spreads, Example, and Risk Metrics
The term option refers to a financial instrument that is based on the value of underlying securities such as stocks. An options contract...
Read more >Option Definition & Meaning - Merriam-Webster
a · the power or right to choose : freedom of choice ; b · a privilege of demanding fulfillment of a contract...
Read more >Option (finance) - Wikipedia
An option is a contract that allows the holder the right to buy or sell an underlying asset or financial instrument at a...
Read more >Option.com
Option is a publicly quoted technology company, headquartered in Leuven, Belgium. Option specializes in the design, development, production and ...
Read more >OPTION | definition in the Cambridge English Dictionary
one thing that can be chosen from a set of possibilities, or the freedom to make a choice: The program helps students explore...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Using
Option
s withneverthrow
is, in my opinion, just a matter of using a pattern such as the above to use whichever Option implementation a user may want.Now - if the problem is that current Option implementations aren’t “good” for whatever reason, then that’s something I’m open to discussing. But realistically that would still live in its own repo / npm lib.
@supermacro are you still considering adding an
Option
toneverthrow
?Introducing
Result
has been a game changer for some of our teams in terms of enabling them to write JavaScript in a more pure, functional style without too much overhead. The only thing we are missing is anOption
to so we can “never null” as well as “never throw” 😉 .It looks like there might be a few libraries out there we could use, but I’d far prefer using one with a similar implementation and API to
neverthrow
. If it is something you are still considering, I would be interested in contributing, too.Thanks for a great library!