Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
musicq
· 3y ago · 0 comments
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...
Comments
[–]
meowtimemania
3y ago
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.