Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
musicq
on Oct 31, 2023
|
parent
|
context
|
favorite
| on:
Unwrapit provides a way to handle errors in JS/TS
I think the most usual way in a project is to use this style. Wrap is a simple way to let you get Result type without refactoring your implementation.
https://musicq.gitbook.io/unwrapit/recipe/return-result-with...
meowtimemania
on Oct 31, 2023
[–]
Then I'm tightly coupling all my code to this library. I would prefer to write javascript like normal and not import a library anytime I author a function.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
https://musicq.gitbook.io/unwrapit/recipe/return-result-with...